summaryrefslogtreecommitdiff
path: root/gtk/gtkwindow.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-03-23 14:56:21 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-03-26 15:57:11 -0400
commitd45996c7281ebaf95ae88de6ca350b2e3e75b46e (patch)
tree1f2203905479d7a5575af9a1221d2397b5efbd83 /gtk/gtkwindow.h
parent6b6f26ed45fb231e142f2c39aa455bdaafbc5b4d (diff)
downloadgtk+-d45996c7281ebaf95ae88de6ca350b2e3e75b46e.tar.gz
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.
Diffstat (limited to 'gtk/gtkwindow.h')
-rw-r--r--gtk/gtkwindow.h8
1 files changed, 4 insertions, 4 deletions
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