summaryrefslogtreecommitdiff
path: root/src/ui/frames.c
diff options
context:
space:
mode:
authorDenis Gorodnichev <[email protected]>2014-10-27 13:26:39 +0100
committerinfirit <[email protected]>2014-10-27 13:26:39 +0100
commite2f29ace20f74e1e62e80ba13d8d6bbe36d65212 (patch)
tree9ab3a153ca960f9e4820f2972f281bb53b95256a /src/ui/frames.c
parentaaa378feaff4331c8c78afb390f99d867ddf9b88 (diff)
downloadmarco-e2f29ace20f74e1e62e80ba13d8d6bbe36d65212.tar.bz2
marco-e2f29ace20f74e1e62e80ba13d8d6bbe36d65212.tar.xz
Fixup Gtk3 Gdk device handling
Diffstat (limited to 'src/ui/frames.c')
-rw-r--r--src/ui/frames.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/frames.c b/src/ui/frames.c
index d9c7ea1c..e4db182d 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -2027,7 +2027,12 @@ meta_frames_motion_notify_event (GtkWidget *widget,
MetaFrameControl control;
int x, y;
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gdk_window_get_device_position (frame->window, event->device,
+ &x, &y, NULL);
+#else
gdk_window_get_pointer (frame->window, &x, &y, NULL);
+#endif
/* Control is set to none unless it matches
* the current grab
@@ -2072,7 +2077,12 @@ meta_frames_motion_notify_event (GtkWidget *widget,
MetaFrameControl control;
int x, y;
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gdk_window_get_device_position (frame->window, event->device,
+ &x, &y, NULL);
+#else
gdk_window_get_pointer (frame->window, &x, &y, NULL);
+#endif
control = get_control (frames, frame, x, y);