mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-26 19:19:10 -06:00
ViewportCommand::BeginResize and StartDrag hand the pointer to the compositor, which keeps the button's release on Wayland; winit reports only that the pointer left, and egui doesn't count that as a release. egui then still thought the primary button held, so the next press on an edge or the tab strip didn't start a drag until a click inside the window. window_controls::desktop_grab notes each hand-over, and release_after_desktop_grab (called first in raw_input_hook) adds the missed release to the next input, once, unless that input brings one. Ported from WordCraft 1581c288, confirmed by hand there for repeated edge resizes on GNOME/Wayland. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Wrwtfrnom6Eg1Jt7xZ7VA8