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/branches/WX_3_0_BRANCH@75826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -609,6 +609,7 @@ wxGTK:
|
||||
also fixes wxOwnerDrawnComboBox, wxDatePickerCtrl.
|
||||
- Fix cursor inheritance.
|
||||
- Fix wxStaticBoxSizer size calculation
|
||||
- Fix AUI panel re-docking
|
||||
|
||||
wxMSW:
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user