]> git.saurik.com Git - wxWidgets.git/commitdiff
Reset g_lastMouseEvent after processing the mouse button release event
authorRobin Dunn <robin@alldunn.com>
Tue, 6 Feb 2007 21:53:09 +0000 (21:53 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 6 Feb 2007 21:53:09 +0000 (21:53 +0000)
(ported from 2.8 branch)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp

index 4d3c7dafe9baa43ddce4c17bfe852c208169b832..35aa3f62426d9ac0da5298d00912439fb458f774 100644 (file)
@@ -1682,7 +1682,11 @@ gtk_window_button_release_callback( GtkWidget *widget,
     event.SetEventObject( win );
     event.SetId( win->GetId() );
 
-    return win->GTKProcessEvent(event);
+    bool ret = win->GTKProcessEvent(event);
+    
+    g_lastMouseEvent = NULL;
+    
+    return ret;
 }
 
 //-----------------------------------------------------------------------------