Skip to main content

compositor_grab

Function compositor_grab 

Source
pub fn compositor_grab(ctx: &Context)
Expand description

Says that the compositor takes the pointer from this pass on, for an interactive move or resize of the window (ViewportCommand::StartDrag, BeginResize): the next pass of this window starts with the primary button released, if egui still holds it down.

upstream: Wayland compositors (labwc, GNOME’s mutter) keep the button’s release for their move, and winit never hands it to the window: egui then believes the button held until the pointer leaves the window, every click after it a drag or nothing (docs/upstream.md, “winit: no release after a compositor move on Wayland”). A release that does come later finds the button up and changes nothing.