mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-08 11:30:30 +01:00
Merge branch 'no_pointer_limits' into 'master'
xwayland: remove limits for wayland pointer See merge request xorg/xserver!2119
This commit is contained in:
commit
9efe81c1c8
1 changed files with 10 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue