]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/button.cpp
Only send keypress events to focus widget, not its parents
[wxWidgets.git] / src / gtk / button.cpp
index 71cfd13497ebfef4fb844f29eb60f05218b2e236..61e1ad1396012e6518706b3cdcc64ef039aad0cf 100644 (file)
@@ -74,8 +74,8 @@ gtk_button_style_set_callback( GtkWidget *m_widget, GtkStyle *WXUNUSED(style), w
             gtk_border_free( default_border );
         }
         win->MoveWindow(
-            win->m_x - top_border,
-            win->m_y - left_border,
+            win->m_x - left_border,
+            win->m_y - top_border,
             win->m_width + left_border + right_border,
             win->m_height + top_border + bottom_border);
     }