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
This commit is contained in:
parent
f5d12dab44
commit
2dfa6e6aa8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user