Henri Verbeet : winex11: Handle a NULL cursor clipping rect the same as a fullscreen rect.

Alexandre Julliard julliard at winehq.org
Fri Sep 28 11:39:03 CDT 2012


Module: wine
Branch: master
Commit: 73d68c5a31b972a24dab39b036a5d3197edb3565
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=73d68c5a31b972a24dab39b036a5d3197edb3565

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Fri Sep 28 01:06:53 2012 +0200

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 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c
index be822bf..818bdd5 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 */




More information about the wine-cvs mailing list