Merge branch 'no_pointer_limits' into 'master'

xwayland: remove limits for wayland pointer

See merge request xorg/xserver!2119
This commit is contained in:
lightofmysoul 2026-02-06 22:58:02 +00:00
commit 9efe81c1c8

View file

@ -867,6 +867,13 @@ xwl_screen_update_global_surface_scale(struct xwl_screen *xwl_screen)
return (xwl_screen->global_surface_scale != old_scale);
}
static void
xwl_screen_cursor_no_limits(DeviceIntPtr pDev, ScreenPtr pScreen, CursorPtr pCursor,
BoxPtr pHotBox, BoxPtr pTopLeftBox) {
pTopLeftBox->x1 = pTopLeftBox->y1 = INT16_MIN;
pTopLeftBox->x2 = pTopLeftBox->y2 = INT16_MAX;
}
Bool
xwl_screen_init(ScreenPtr pScreen, int argc, char **argv)
{
@ -1175,6 +1182,9 @@ xwl_screen_init(ScreenPtr pScreen, int argc, char **argv)
pScreen->CursorWarpedTo = xwl_cursor_warped_to;
pScreen->CursorConfinedTo = xwl_cursor_confined_to;
pScreen->CursorLimits = xwl_screen_cursor_no_limits;
pScreen->ConstrainCursorHarder = NULL;
xwl_screen->allow_commits_prop = MakeAtom(allow_commits,
strlen(allow_commits),
TRUE);