[client] input: add display server behaviour tests

Extract input policy from the Wayland and X11 protocol handlers.

Exercise both implementations against literal Wayland event traces.
This commit is contained in:
Geoffrey McRae
2026-08-10 17:15:11 +10:00
parent 802c8b5803
commit b8955fd012
14 changed files with 1731 additions and 256 deletions

View File

@@ -240,7 +240,7 @@ void waylandSetPointer(LG_DSPointer pointer)
wlWm.cursorHotY = wlWm.cursorHot[pointer].y;
MTRACE("set id=%d surface=%p hot=%d,%d scale=%d entered=%d",
pointer, (void *)wlWm.cursor, wlWm.cursorHotX, wlWm.cursorHotY,
wlWm.cursorScale, wlWm.pointerInSurface);
wlWm.cursorScale, wlWm.input.pointerInSurface);
if (wlWm.pointer)
wl_pointer_set_cursor(wlWm.pointer, wlWm.pointerEnterSerial, wlWm.cursor, wlWm.cursorHotX, wlWm.cursorHotY);
}