From: Robert Roebling Date: Wed, 23 Apr 2003 06:37:05 +0000 (+0000) Subject: Typo in mouse event code. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/33688b28c343be030b4aa76f3748c95bf14489b6 Typo in mouse event code. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index a18db75fb5..2a4c1375d1 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -1831,7 +1831,7 @@ static gint gtk_window_motion_notify_callback( GtkWidget *widget, wxMouseEvent event( wxEVT_MOTION ); InitMouseEvent(win, event, gdk_event); - if ( g_captureWindow ) + if ( !g_captureWindow ) { // synthetize a mouse enter or leave event if needed GdkWindow *winUnderMouse = gdk_window_at_pointer(NULL, NULL); diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index a18db75fb5..2a4c1375d1 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -1831,7 +1831,7 @@ static gint gtk_window_motion_notify_callback( GtkWidget *widget, wxMouseEvent event( wxEVT_MOTION ); InitMouseEvent(win, event, gdk_event); - if ( g_captureWindow ) + if ( !g_captureWindow ) { // synthetize a mouse enter or leave event if needed GdkWindow *winUnderMouse = gdk_window_at_pointer(NULL, NULL);