mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-12-04 13:03:19 -05:00
winit 0.30 gives an undecorated window WS_CAPTION | WS_BORDER. On some Windows systems the compositor still reserves that frame, so the content is drawn below a black bar while the pointer keeps the client coordinates, and a click lands above the control. PhotoCraft, VectorCraft, FigCraft and DesignCraft fixed the same symptom by stripping WS_CAPTION/WS_BORDER and having Windows recalculate the frame; winit puts them back on every flag change, so the guard runs once per frame and only reads the style once they are gone. WS_THICKFRAME stays, so edge resizing and snap keep working. Only the integrated (undecorated) title bar is guarded; the system title bar is untouched. Ports storytold/photocraft#2401. Not yet verified on affected hardware. Co-authored-by: FredApps <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>