mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-14 14:41:52 +00:00
Quitting can wait up to 27 s for the clipboard handles to let go before eframe closes the windows. winit cannot hide a native Wayland window, so the main window stayed on screen for that wait, and the X11 windows of floating panels and documents were not hidden at all. - A native Wayland main window is unmapped by attaching no buffer to its surface. The window and its connection stay open for the Wayland clipboard. An X11 main window, XWayland included, is hidden as before. - On Linux the X11 windows of floating panels and documents are recorded as eframe creates and drops them (viewport hooks), and quitting unmaps them through a second X11 connection before the wait. - The new module apps/vectorcraft/src/quit_windows.rs replaces app::hide_before_teardown, with tests of which windows are hidden or unmapped. portal_save's Wayland surface helper is shared with it.