From b3c86df1178c9f64548554d9ba5f0a721560a230 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Mon, 13 Aug 2018 11:53:53 +0200 Subject: gpm-kbd-backlight: replace deprecated GDK_DEVICE_MANAGER --- src/gpm-kbd-backlight.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/gpm-kbd-backlight.c b/src/gpm-kbd-backlight.c index ec353e0..287968b 100644 --- a/src/gpm-kbd-backlight.c +++ b/src/gpm-kbd-backlight.c @@ -186,9 +186,9 @@ gpm_kbd_backlight_dialog_show (GpmKbdBacklight *backlight) GdkScreen *pointer_screen; GdkRectangle geometry; GdkMonitor *monitor; - GdkDisplay *display; - GdkDeviceManager *device_manager; - GdkDevice *device; + GdkDisplay *display; + GdkSeat *seat; + GdkDevice *device; /* * get the window size @@ -206,13 +206,13 @@ gpm_kbd_backlight_dialog_show (GpmKbdBacklight *backlight) } pointer_screen = NULL; - display = gtk_widget_get_display (backlight->priv->popup); - device_manager = gdk_display_get_device_manager (display); - device = gdk_device_manager_get_client_pointer (device_manager); - gdk_device_get_position (device, - &pointer_screen, - &pointer_x, - &pointer_y); + display = gtk_widget_get_display (backlight->priv->popup); + seat = gdk_display_get_default_seat (display); + device = gdk_seat_get_pointer (seat); + gdk_device_get_position (device, + &pointer_screen, + &pointer_x, + &pointer_y); monitor = gdk_display_get_monitor_at_point (gdk_screen_get_display (pointer_screen), pointer_x, -- cgit v1.2.1