From 8aaba8af808bebdffd17090bf4ae56c490051f9d Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 1 Feb 2007 22:54:19 +0000 Subject: [PATCH] Reset g_lastMouseEvent after processing the mouse button release event git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/window.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 4d3c7dafe9..35aa3f6242 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -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; } //-----------------------------------------------------------------------------