You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Overlays ignore right clicks on Windows and macOS #255
Overlays on Windows and macOS ignore the right mouse button, so on_secondary_press never runs in an overlay there.
Where:Overlay::window_event in crates/rune/src/overlay/any_host.rs handles only WindowEvent::MouseInput { button: MouseButton::Left, .. }. Linux layer-shell and XWayland overlays send Input::Secondary (platform/layer_shell.rs, platform/x11/xwayland.rs), so the same view works there.
Reproduction (Windows 11, rev 1c10c5c): an overlay with OverlayInput::Regions, and a .hit() element with .on_press(..) and .on_secondary_press(..). Inject a left click and a right click on the element with mouse_event. on_press runs. on_secondary_press does not run. The overlay keeps its no-activate behaviour in both cases.
Use case: a dictation pill overlay that opens a context menu (Tx::popup_menu) on right-click.
Fix that works for us (checked on Windows 11 with the same reproduction; not checked on macOS):
Fixed in #1222 (commit 1dc3b333): OverlayHost::window_event in crates/rune/src/overlay/any_host.rs now handles MouseButton::Right (as well as Ctrl+click on macOS and other mouse buttons) and dispatches secondary_down / secondary_up so on_secondary_press runs in overlays on Windows and macOS.
Closing as completed. If you still see this on a current dev revision, comment here and it will be reopened.
Activity
Hona commentedon Nov 23, 2026
Fixed in #1222 (commit
1dc3b333):OverlayHost::window_eventincrates/rune/src/overlay/any_host.rsnow handlesMouseButton::Right(as well as Ctrl+click on macOS and other mouse buttons) and dispatchessecondary_down/secondary_upsoon_secondary_pressruns in overlays on Windows and macOS.Closing as completed. If you still see this on a current dev revision, comment here and it will be reopened.