From d45996c7281ebaf95ae88de6ca350b2e3e75b46e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 23 Mar 2019 14:56:21 -0400 Subject: Avoid root coordinates in begin_drag/move apis Change the all the begin_drag and begin_move apis in GdkSurface and GtkWindow to expect surface coordinates. Update the x11 implementation to translate to root coordinates where it matters. Wayland is ignoring the coordinates anyway. --- gtk/gtkwindow.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gtk/gtkwindow.h') diff --git a/gtk/gtkwindow.h b/gtk/gtkwindow.h index 2b7a0078f5..d823f8826e 100644 --- a/gtk/gtkwindow.h +++ b/gtk/gtkwindow.h @@ -355,14 +355,14 @@ GDK_AVAILABLE_IN_ALL void gtk_window_begin_resize_drag (GtkWindow *window, GdkSurfaceEdge edge, gint button, - gint root_x, - gint root_y, + gint x, + gint y, guint32 timestamp); GDK_AVAILABLE_IN_ALL void gtk_window_begin_move_drag (GtkWindow *window, gint button, - gint root_x, - gint root_y, + gint x, + gint y, guint32 timestamp); /* Set initial default size of the window (does not constrain user -- cgit v1.2.1