From 720a0aab264ee69c04fca4b6acac561028f30683 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Tue, 12 Sep 2006 07:39:42 +0000 Subject: [PATCH] RD forgot to add "Do" git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/window.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 583b469877..a18ed12377 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -1288,7 +1288,9 @@ template void InitMouseEvent(wxWindowGTK *win, // origin in the upper right corner int virtual_width = win->GetVirtualSize().x; int window_width = gtk_pizza_get_rtl_offset( GTK_PIZZA(win->m_wxwindow) ); - event.m_x = wxMax( virtual_width, window_width ) - event.m_x; + //wxPrintf( wxT("event.m_x %d virtual_width %d window_width %d m_xoffset %d\n"), + // event.m_x, virtual_width, window_width, GTK_PIZZA(win->m_wxwindow)->m_xoffset ); + event.m_x = window_width - event.m_x; } event.SetEventObject( win );