winex11.drv: Check for the screen that the MotionNotify event occurred on

Alexander Lakhin exclusion at gmail.com
Wed Feb 23 14:27:08 CST 2011


Fixes bug #26225
---
 dlls/winex11.drv/mouse.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c
index a763798..fada2d6 100644
--- a/dlls/winex11.drv/mouse.c
+++ b/dlls/winex11.drv/mouse.c
@@ -1234,6 +1234,8 @@ void X11DRV_MotionNotify( HWND hwnd, XEvent *xev )
 
     TRACE("hwnd %p, event->is_hint %d\n", hwnd, event->is_hint);
 
+    if (!event->same_screen) return;
+
     top_hwnd = update_mouse_state( hwnd, event->window, event->x, event->y, event->state, &pt );
     if (!top_hwnd) return;
 
-- 
1.7.1


--------------000800070408060404000308--



More information about the wine-patches mailing list