summaryrefslogtreecommitdiff
path: root/src/ui/frames.c
diff options
context:
space:
mode:
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);