=?UTF-8?Q?R=C3=A9mi=20Bernon=20?=: winex11.drv: Explicitly call XUngrabPointer when clipping is released.

Alexandre Julliard julliard at winehq.org
Fri Sep 6 16:05:42 CDT 2019


Module: wine
Branch: master
Commit: ae4651b7ffad963aa1501b3ba5eb953141942a76
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=ae4651b7ffad963aa1501b3ba5eb953141942a76

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Fri Aug 30 12:18:02 2019 +0200

winex11.drv: Explicitly call XUngrabPointer when clipping is released.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winex11.drv/mouse.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c
index 97e2935..fff6fc7 100644
--- a/dlls/winex11.drv/mouse.c
+++ b/dlls/winex11.drv/mouse.c
@@ -465,6 +465,7 @@ void ungrab_clipping_window(void)
 
     TRACE( "no longer clipping\n" );
     XUnmapWindow( display, clip_window );
+    if (clipping_cursor) XUngrabPointer( display, CurrentTime );
     clipping_cursor = FALSE;
     SendMessageW( GetDesktopWindow(), WM_X11DRV_CLIP_CURSOR, 0, 0 );
 }




More information about the wine-cvs mailing list