Merge branch 'no_pointer_limits' into 'main'

xwayland: remove limits for wayland pointer

Closes #792, #1857, #1814, #1845, #1842, #1841, #1843, #467, #1816, #1811, #1782, #1434, #1053, #1534, #1788, #1785, #1783, #1780, #1648, #1764, #1714, #1724, #1752, #1611, #1735, #1668, #1730, #1732, #1722, #1717, #1700, #1699, #1688, #1680, #1677, #1679, #1683, #1669, #1671, #1673, #1672, #1664, #1655, #1656, #1659, #577, #1604, #1654, #1627, #1633, #1644, #1626, and #1631

See merge request xorg/xserver!2119
This commit is contained in:
lightofmysoul 2026-06-01 05:42:59 +00:00
commit 3905b9a545

View file

@ -886,6 +886,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_validate_options(int argc, char **argv)
{
@ -1237,6 +1244,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);