-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Is ControlFlow supposed to be sticky? (eventloop-2.0) #891
Copy link
Copy link
Closed
Labels
B - bugDang, that shouldn't have happenedDang, that shouldn't have happenedD - easyLikely easier than most tasks hereLikely easier than most tasks hereDS - waylandAffects the Wayland backend, or generally free Unix platformsAffects the Wayland backend, or generally free Unix platformsDS - x11Affects the X11 backend, or generally free Unix platformsAffects the X11 backend, or generally free Unix platformsH - good first issueIdeal for new contributorsIdeal for new contributors
Metadata
Metadata
Assignees
Labels
B - bugDang, that shouldn't have happenedDang, that shouldn't have happenedD - easyLikely easier than most tasks hereLikely easier than most tasks hereDS - waylandAffects the Wayland backend, or generally free Unix platformsAffects the Wayland backend, or generally free Unix platformsDS - x11Affects the X11 backend, or generally free Unix platformsAffects the X11 backend, or generally free Unix platformsH - good first issueIdeal for new contributorsIdeal for new contributors
Based on the doc comment, I would believe that it is intended to be sticky. However, the x11 and wayland implementations are resetting it per loop iteration. It doesn't look like Windows is doing this.
winit/src/event_loop.rs
Lines 65 to 69 in 0df4369
winit/src/platform_impl/linux/x11/mod.rs
Lines 283 to 286 in 0df4369
winit/src/platform_impl/linux/x11/mod.rs
Lines 289 to 291 in 0df4369
winit/src/platform_impl/linux/x11/mod.rs
Lines 301 to 306 in 0df4369