From e2f29ace20f74e1e62e80ba13d8d6bbe36d65212 Mon Sep 17 00:00:00 2001 From: Denis Gorodnichev Date: Mon, 27 Oct 2014 13:26:39 +0100 Subject: Fixup Gtk3 Gdk device handling --- src/ui/frames.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/ui/frames.c') 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); -- cgit v1.2.1