winex11.drv: Don't confine the pointer to any window when just checking for active grab.
Fixes a regression introduced by 74efb3e872
,
which caused some random pointer warping on a setup with multiple "workspaces"
when switching between them and a full screen game that warped the mouse.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c87258c46b
commit
dd38e4576b
|
@ -1478,7 +1478,7 @@ BOOL CDECL X11DRV_SetCursorPos( INT x, INT y )
|
|||
if (!clipping_cursor &&
|
||||
XGrabPointer( data->display, root_window, False,
|
||||
PointerMotionMask | ButtonPressMask | ButtonReleaseMask,
|
||||
GrabModeAsync, GrabModeAsync, root_window, None, CurrentTime ) != GrabSuccess)
|
||||
GrabModeAsync, GrabModeAsync, None, None, CurrentTime ) != GrabSuccess)
|
||||
{
|
||||
WARN( "refusing to warp pointer to %u, %u without exclusive grab\n", pos.x, pos.y );
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in New Issue