summaryrefslogtreecommitdiff
path: root/src/gpm-backlight.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-08-13 11:29:08 +0200
committerraveit65 <[email protected]>2018-08-13 11:57:23 +0200
commit71eb5487cb205d5e637439305232f4bad626a04a (patch)
tree6c2a8af519909c2b94deac0a088410f719a4895d /src/gpm-backlight.c
parentd5d6e8cd07bf2b15defb01d355d48702c16d23f1 (diff)
downloadmate-power-manager-71eb5487cb205d5e637439305232f4bad626a04a.tar.bz2
mate-power-manager-71eb5487cb205d5e637439305232f4bad626a04a.tar.xz
gpm-backlight: replace deprecated GDK_DEVICE_MANAGER
Diffstat (limited to 'src/gpm-backlight.c')
-rw-r--r--src/gpm-backlight.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gpm-backlight.c b/src/gpm-backlight.c
index e066d06..673d300 100644
--- a/src/gpm-backlight.c
+++ b/src/gpm-backlight.c
@@ -209,9 +209,9 @@ gpm_backlight_dialog_show (GpmBacklight *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
@@ -229,13 +229,13 @@ gpm_backlight_dialog_show (GpmBacklight *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,