]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/window.cpp
Partially applied patch [ 531199 ] new EVT_MOVING and EVT_SIZING
[wxWidgets.git] / src / gtk1 / window.cpp
index af1bddc33213f0a89d0493303e0c405a59a958d1..ca83cf7c87e437426aa89a9b2df87fae57085612 100644 (file)
@@ -1420,7 +1420,7 @@ wxWindowGTK *FindWindowForMouseEvent(wxWindowGTK *win, wxCoord& x, wxCoord& y)
             int xx1 = child->m_x;
             int yy1 = child->m_y;
             int xx2 = child->m_x + child->m_width;
-            int yy2 = child->m_x + child->m_height;
+            int yy2 = child->m_y + child->m_height;
 
             // left
             if (((xx >= xx1) && (xx <= xx1+10) && (yy >= yy1) && (yy <= yy2)) ||