summaryrefslogtreecommitdiff
path: root/plugins/mouse
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-01-28 21:33:09 +0300
committerraveit65 <[email protected]>2018-01-30 14:03:10 +0100
commit336743475664829a64d13bbd70a2c97a58375d0c (patch)
tree2f3498fee5dc93d489e8768c54d01228c5863629 /plugins/mouse
parenteaad50f7624c8946e57ca075f8b7e383b1715bcc (diff)
downloadmate-settings-daemon-336743475664829a64d13bbd70a2c97a58375d0c.tar.bz2
mate-settings-daemon-336743475664829a64d13bbd70a2c97a58375d0c.tar.xz
require GTK+ 3.22 and GLib 2.50
Diffstat (limited to 'plugins/mouse')
-rw-r--r--plugins/mouse/msd-locate-pointer.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/plugins/mouse/msd-locate-pointer.c b/plugins/mouse/msd-locate-pointer.c
index 2077ca4..505eb90 100644
--- a/plugins/mouse/msd-locate-pointer.c
+++ b/plugins/mouse/msd-locate-pointer.c
@@ -173,11 +173,7 @@ timeline_frame_cb (MsdTimeline *timeline,
MsdLocatePointerData *data = (MsdLocatePointerData *) user_data;
GdkDisplay *display = gdk_window_get_display (data->window);
GdkScreen *screen = gdk_display_get_default_screen (display);
-#if GTK_CHECK_VERSION (3, 20, 0)
GdkSeat *seat;
-#else
- GdkDeviceManager *device_manager;
-#endif
GdkDevice *pointer;
gint cursor_x, cursor_y;
@@ -194,13 +190,8 @@ timeline_frame_cb (MsdTimeline *timeline,
data->progress += CIRCLES_PROGRESS_INTERVAL;
}
-#if GTK_CHECK_VERSION (3, 20, 0)
seat = gdk_display_get_default_seat (display);
pointer = gdk_seat_get_pointer (seat);
-#else
- device_manager = gdk_display_get_device_manager (display);
- pointer = gdk_device_manager_get_client_pointer (device_manager);
-#endif
gdk_device_get_position (pointer,
NULL,
&cursor_x,
@@ -380,24 +371,15 @@ static void
move_locate_pointer_window (MsdLocatePointerData *data,
GdkDisplay *display)
{
-#if GTK_CHECK_VERSION (3, 20, 0)
GdkSeat *seat;
-#else
- GdkDeviceManager *device_manager;
-#endif
GdkDevice *pointer;
gint cursor_x, cursor_y;
cairo_t *cr;
cairo_surface_t *mask;
cairo_region_t *region;
-#if GTK_CHECK_VERSION (3, 20, 0)
seat = gdk_display_get_default_seat (display);
pointer = gdk_seat_get_pointer (seat);
-#else
- device_manager = gdk_display_get_device_manager (display);
- pointer = gdk_device_manager_get_client_pointer (device_manager);
-#endif
gdk_device_get_position (pointer,
NULL,
&cursor_x,