]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/window.cpp
Remove temporary files created by wxFileName unit test case.
[wxWidgets.git] / src / gtk / window.cpp
index 2e4d4da718d8df97d667e3e0280aa8b77a2325de..5717ec805fc46be2f2089e544ddb1c7e212fa7f9 100644 (file)
@@ -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) &&