]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch [ 739063 ] window.cpp (gtk) - mouse event processing
authorJulian Smart <julian@anthemion.co.uk>
Sun, 1 Jun 2003 13:45:54 +0000 (13:45 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 1 Jun 2003 13:45:54 +0000 (13:45 +0000)
x -> y

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp
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)) ||
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)) ||