mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 13:32:45 -05:00
Part of #10797. On the OpenGL backend, Preferences and floating panels drew their content offset down and right by a title bar and border, while clicks landed at the unshifted positions. These windows draw their own title bar, so winit makes them undecorated, but it still gives them the WS_CAPTION and WS_BORDER styles, and on these systems the frame stays reserved for the window surface. The guard added for #1758 removes the two styles from the main window only. A viewport hook now records every undecorated window other than the main one as eframe creates it, and runs the same guard on it at creation and before each of its frames, so the styles stay off when winit puts them back. Windows with the system title bar are left alone, and a window's record is dropped with the window.