From: Julian Smart Date: Sun, 1 Jun 2003 13:45:54 +0000 (+0000) Subject: Applied patch [ 739063 ] window.cpp (gtk) - mouse event processing X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7408cf7f7684c70fd86b6656452e9aab47c97be1 Applied patch [ 739063 ] window.cpp (gtk) - mouse event processing x -> y git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index af1bddc332..ca83cf7c87 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -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)) || diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index af1bddc332..ca83cf7c87 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -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)) ||