Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
gtk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dorota Czaplejewicz
gtk
Commits
ed89e5f6
Commit
ed89e5f6
authored
Dec 07, 2015
by
Matthias Clasen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11: Store drag start coordinates
These will be used in later commits.
parent
a24bbcbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
gdk/x11/gdkdnd-x11.c
gdk/x11/gdkdnd-x11.c
+5
-0
No files found.
gdk/x11/gdkdnd-x11.c
View file @
ed89e5f6
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment