X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ac900e6ba58c645d6630e56d8f05c70a35b6eb17..41fec01fa9e009d84fe353aa494725328d850af1:/src/gtk/window.cpp diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 2e4d4da718..5717ec805f 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,7 @@ wxWindowGTK *FindWindowForMouseEvent(wxWindowGTK *win, wxCoord& x, wxCoord& y) else { if ((child->m_wxwindow == NULL) && + win->IsClientAreaChild(child) && (child->m_x <= xx) && (child->m_y <= yy) && (child->m_x+child->m_width >= xx) &&