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
This commit is contained in:
parent
21371c1df0
commit
5807245682
@ -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) &&
|
||||
|
Loading…
Reference in New Issue
Block a user