From dcfba8a9bd132fee897672898044e81a4bb19c92 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: --- 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 85c2b7059..a43126678 100644 --- a/hw/xwayland/xwayland-output.c +++ b/hw/xwayland/xwayland-output.c @@ -1189,6 +1189,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);