From c859dce96debe19b3ab84da5cf90a1b54d7b2b42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Mon, 6 Oct 2025 16:48:20 +0200 Subject: [PATCH] xwayland: Clear ConstrainCursorHarder in xwl_screen_init_output In the rootless case, Xwayland receives pointer motion events only while the pointer is over one of its Wayland surfaces, so there's no need for constraining them to RandR boundaries. This also avoids them getting spuriously constrained when using RandR emulation for modes larger than the default one. Part-of: (cherry picked from commit dcfba8a9bd132fee897672898044e81a4bb19c92) --- hw/xwayland/xwayland-output.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/xwayland/xwayland-output.c b/hw/xwayland/xwayland-output.c index dad5689ce..74cdc2066 100644 --- a/hw/xwayland/xwayland-output.c +++ b/hw/xwayland/xwayland-output.c @@ -1186,6 +1186,8 @@ xwl_screen_init_output(struct xwl_screen *xwl_screen) if (!RRScreenInit(xwl_screen->screen)) return FALSE; + xwl_screen->screen->ConstrainCursorHarder = NULL; + RRScreenSetSizeRange(xwl_screen->screen, 16, 16, 32767, 32767); rp = rrGetScrPriv(xwl_screen->screen);