Files
chandra/interface/moonplasma/host/display/native_stub.mbt
T
Claude d0d375c071 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
2026-11-25 17:07:33 +00:00

77 lines
1.3 KiB
MoonBit

// Generated by scripts/gen-native-stubs.py. Native stand-ins for the wasm-only ffi.mbt.
///|
fn wasmImportOpen(p0 : Int) -> Unit {
abort("wasm-only host import")
}
///|
fn wasmImportPoll() -> Int {
abort("wasm-only host import")
}
///|
fn wasmImportFrameReady() -> Int {
abort("wasm-only host import")
}
///|
fn wasmImportPresent(p0 : Int, p1 : Int, p2 : Int, p3 : Int) -> Unit {
abort("wasm-only host import")
}
///|
fn wasmImportPresentFrame() -> Unit {
abort("wasm-only host import")
}
///|
fn wasmImportSetCursorShape(p0 : Int) -> Unit {
abort("wasm-only host import")
}
///|
fn wasmImportTakeInput(p0 : Int) -> Unit {
abort("wasm-only host import")
}
///|
fn wasmImportClose() -> Unit {
abort("wasm-only host import")
}
///|
fn mbt_ffi_ptr2bytes(ptr : Int, len : Int) -> FixedArray[Byte] {
abort("wasm-only")
}
///|
fn mbt_ffi_loadf64(offset : Int) -> Double {
abort("wasm-only")
}
///|
fn mbt_ffi_bytes2ptr(bytes : FixedArray[Byte]) -> Int {
abort("wasm-only")
}
///|
fn mbt_ffi_malloc(size : Int) -> Int {
abort("wasm-only")
}
///|
fn mbt_ffi_load8_u(offset : Int) -> Int {
abort("wasm-only")
}
///|
fn mbt_ffi_load32(offset : Int) -> Int {
abort("wasm-only")
}
///|
fn mbt_ffi_free(position : Int) -> Unit {
abort("wasm-only")
}