[PATCH 2/5] winex11: Handle a NULL cursor clipping rect the same as a fullscreen rect.
Henri Verbeet
hverbeet at codeweavers.com
Thu Sep 27 18:06:53 CDT 2012
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 */
--
1.7.8.6
More information about the wine-patches
mailing list