From 58072456825ec7aa1c3754f862631e9ad737f696 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Wed, 15 Feb 2012 07:04:42 +0000 Subject: [PATCH] avoid sending mouse events to the wrong window, fixes #2917 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/window.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 2e4d4da..4a3b006 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -1141,7 +1141,7 @@ static void AdjustEventButtonState(wxMouseEvent& event) } } -// find the window to send the mouse event too +// find the window to send the mouse event to static wxWindowGTK *FindWindowForMouseEvent(wxWindowGTK *win, wxCoord& x, wxCoord& y) { @@ -1191,6 +1191,8 @@ wxWindowGTK *FindWindowForMouseEvent(wxWindowGTK *win, wxCoord& x, wxCoord& y) else { if ((child->m_wxwindow == NULL) && + !gtk_widget_get_has_window(child->m_widget) && + win->IsClientAreaChild(child) && (child->m_x <= xx) && (child->m_y <= yy) && (child->m_x+child->m_width >= xx) && -- 2.7.4