[libwnck/wip/muktupavels/gnome-3-20: 21/22] pager: avoid deprecated GdkDeviceManager



commit 2d31ce7e836f983cb97ef5b11024deb021c1ca1b
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Tue Mar 22 17:26:28 2016 +0200

    pager: avoid deprecated GdkDeviceManager

 libwnck/pager.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libwnck/pager.c b/libwnck/pager.c
index 58b257b..96e3b77 100644
--- a/libwnck/pager.c
+++ b/libwnck/pager.c
@@ -1908,15 +1908,15 @@ wnck_pager_motion (GtkWidget        *widget,
 {
   WnckPager *pager;
   GdkWindow *window;
-  GdkDeviceManager *dev_manager;
+  GdkSeat *seat;
   GdkDevice *pointer;
   int x, y;
 
   pager = WNCK_PAGER (widget);
 
-  dev_manager = gdk_display_get_device_manager (gtk_widget_get_display (widget));
+  seat = gdk_display_get_default_seat (gtk_widget_get_display (widget));
   window = gtk_widget_get_window (widget);
-  pointer = gdk_device_manager_get_client_pointer (dev_manager);
+  pointer = gdk_seat_get_pointer (seat);
   gdk_window_get_device_position (window, pointer, &x, &y, NULL);
 
   if (!pager->priv->dragging &&


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]