diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-12-07 15:07:54 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-12-13 10:39:43 -0500 |
commit | ed89e5f62ae5739df1dc1e64e4105e1aeda56971 (patch) | |
tree | c0a5ceaf1667c6cb26626d626e8c6faab4b4dd48 | |
parent | a24bbcbb8d722cf55d7c454c49108c251500511a (diff) | |
download | gtk+-ed89e5f62ae5739df1dc1e64e4105e1aeda56971.tar.gz |
x11: Store drag start coordinates
These will be used in later commits.
-rw-r--r-- | gdk/x11/gdkdnd-x11.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdk/x11/gdkdnd-x11.c b/gdk/x11/gdkdnd-x11.c index 02d7e33236..79244769a4 100644 --- a/gdk/x11/gdkdnd-x11.c +++ b/gdk/x11/gdkdnd-x11.c @@ -76,6 +76,8 @@ struct _GdkX11DragContext guint ref_count; + gint start_x; /* Where the drag started */ + gint start_y; guint16 last_x; /* Coordinates from last event */ guint16 last_y; GdkDragAction old_action; /* The last action we sent to the source */ @@ -1967,6 +1969,9 @@ _gdk_x11_window_drag_begin (GdkWindow *window, gdk_drag_context_set_device (context, device); + GDK_X11_DRAG_CONTEXT (context)->start_x = x_root; + GDK_X11_DRAG_CONTEXT (context)->start_y = y_root; + GDK_X11_DRAG_CONTEXT (context)->drag_window = create_drag_window (gdk_window_get_screen (window)); return context; |