Alexandre Julliard : winex11: Ignore EnterNotify resulting from a pointer grab.

Alexandre Julliard julliard at winehq.org
Mon Mar 31 09:15:15 CDT 2008


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Mar 31 12:12:12 2008 +0200

winex11: Ignore EnterNotify resulting from a pointer grab.

---

 dlls/winex11.drv/mouse.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c
index 8301386..8e8d5f5 100644
--- a/dlls/winex11.drv/mouse.c
+++ b/dlls/winex11.drv/mouse.c
@@ -1110,6 +1110,7 @@ void X11DRV_EnterNotify( HWND hwnd, XEvent *xev )
 
     if (!hwnd) return;
     if (event->detail == NotifyVirtual || event->detail == NotifyNonlinearVirtual) return;
+    if (event->window == x11drv_thread_data()->grab_window) return;
 
     /* simulate a mouse motion event */
     update_mouse_state( hwnd, event->window, event->x, event->y, event->state, &pt );




More information about the wine-cvs mailing list