Mouse wheel scrolls windows: forward scroll to Wayland clients
The wheel used to reach only the Interface Explorer dialog; clients never got wl_pointer.axis, and the login-session (KMS/libinput) backend dropped scroll events. - libinput axis events (wheel, touchpad, trackpoint) are queued as EV_AXIS and surface as InputEvent::Scroll(axis, value, discrete) in both the native and wasm (moonplasma:host/display seat-event.scroll) backends. - The nested backend keeps horizontal scroll and the host's axis_discrete notches. - The compositor sends axis_source(wheel) + axis_discrete/axis_value120 + axis + frame to the popup or window under the pointer; the explorer still takes the wheel while inspect mode is on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hjdz1uQ1y3GgazdKrR
This commit is contained in:
12 files changed
+200
-44
No files matched your search
@@ -30,11 +30,15 @@ interface display {
|
||||
/// A button or key as an evdev code, pressed or released.
|
||||
record key-state { code: u32, pressed: bool }
|
||||
record modifiers { depressed: u32, latched: u32, locked: u32, group: u32 }
|
||||
/// Wheel/touchpad scroll: axis (0 vertical, 1 horizontal), distance in pixels (positive =
|
||||
/// down/right), wheel notches (0 when not from a wheel).
|
||||
record scroll-delta { axis: u32, value: f64, discrete: s32 }
|
||||
variant seat-event {
|
||||
pointer-move(pointer-pos),
|
||||
pointer-button(key-state),
|
||||
key(key-state),
|
||||
modifiers(modifiers),
|
||||
scroll(scroll-delta),
|
||||
}
|
||||
/// Input queued since the last call.
|
||||
take-input: func() -> list<seat-event>;
|
||||
|
||||
Reference in new issue
Block a user