From 2dfa6e6aa8eda955b8071152ec47d80b320beb16 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Thu, 6 Feb 2014 17:27:25 +0000 Subject: [PATCH] Don't update position variables from window dragging code. Let "configure-event" handler do it so it can also generate proper move events. closes #15904 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/minifram.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/gtk/minifram.cpp b/src/gtk/minifram.cpp index cc897e7970..ff5298907c 100644 --- a/src/gtk/minifram.cpp +++ b/src/gtk/minifram.cpp @@ -243,8 +243,6 @@ gtk_window_button_release_callback(GtkWidget* widget, GdkEventButton* gdk_event, gdk_window_get_origin(gtk_widget_get_window(widget), &org_x, &org_y); x += org_x - win->m_diffX; y += org_y - win->m_diffY; - win->m_x = x; - win->m_y = y; gtk_window_move( GTK_WINDOW(win->m_widget), x, y ); return TRUE; @@ -316,8 +314,6 @@ gtk_window_motion_notify_callback( GtkWidget *widget, GdkEventMotion *gdk_event, gdk_window_get_origin(gtk_widget_get_window(widget), &org_x, &org_y); x += org_x - win->m_diffX; y += org_y - win->m_diffY; - win->m_x = x; - win->m_y = y; gtk_window_move( GTK_WINDOW(win->m_widget), x, y ); return TRUE;