From 73d68c5a31b972a24dab39b036a5d3197edb3565 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Fri, 28 Sep 2012 01:06:53 +0200 Subject: [PATCH] winex11: Handle a NULL cursor clipping rect the same as a fullscreen rect. We want to avoid ungrabbing the clipping window if "fullscreen clipping" is enabled. --- dlls/winex11.drv/mouse.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c index be822bf54d5..818bdd591ba 100644 --- a/dlls/winex11.drv/mouse.c +++ b/dlls/winex11.drv/mouse.c @@ -1265,11 +1265,7 @@ BOOL CDECL X11DRV_GetCursorPos(LPPOINT pos) */ BOOL CDECL X11DRV_ClipCursor( LPCRECT clip ) { - if (!clip) - { - ungrab_clipping_window(); - return TRUE; - } + if (!clip) clip = &virtual_screen_rect; if (GetWindowThreadProcessId( GetDesktopWindow(), NULL ) == GetCurrentThreadId()) return TRUE; /* don't clip in the desktop process */