summaryrefslogtreecommitdiff
path: root/plugins/media-keys
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-08-22 16:35:48 +0200
committerraveit65 <[email protected]>2018-08-22 16:35:48 +0200
commitcfe11602bbe43fa8bf46bf1603a7b6ad7eac8424 (patch)
tree3b1ff3799e731f1e6c63ca99c9e6d0ca878941fa /plugins/media-keys
parentd68a31d4e5977154eb10d9822df59e4fb85fd28c (diff)
downloadmate-settings-daemon-cfe11602bbe43fa8bf46bf1603a7b6ad7eac8424.tar.bz2
mate-settings-daemon-cfe11602bbe43fa8bf46bf1603a7b6ad7eac8424.tar.xz
media-keys-manager: replace deprecated GdkDeviceManager
Diffstat (limited to 'plugins/media-keys')
-rw-r--r--plugins/media-keys/msd-media-keys-manager.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/media-keys/msd-media-keys-manager.c b/plugins/media-keys/msd-media-keys-manager.c
index 34e4c01..3a7a4e6 100644
--- a/plugins/media-keys/msd-media-keys-manager.c
+++ b/plugins/media-keys/msd-media-keys-manager.c
@@ -397,9 +397,9 @@ dialog_show (MsdMediaKeysManager *manager)
int screen_h;
int x;
int y;
- GdkDisplay *display;
- GdkDeviceManager *device_manager;
- GdkDevice *pointer;
+ GdkDisplay *display;
+ GdkSeat *seat;
+ GdkDevice *pointer;
int pointer_x;
int pointer_y;
GtkRequisition win_req;
@@ -431,8 +431,8 @@ dialog_show (MsdMediaKeysManager *manager)
pointer_screen = NULL;
display = gdk_screen_get_display (manager->priv->current_screen);
- device_manager = gdk_display_get_device_manager (display);
- pointer = gdk_device_manager_get_client_pointer (device_manager);
+ seat = gdk_display_get_default_seat (display);
+ pointer = gdk_seat_get_pointer (seat);
gdk_device_get_position (pointer,
&pointer_screen,