diff options
author | Rui Matos <tiagomatos@gmail.com> | 2016-01-11 14:47:21 +0100 |
---|---|---|
committer | Rui Matos <tiagomatos@gmail.com> | 2016-01-21 14:07:50 +0100 |
commit | ac8fe2d9b2a0723cab0f955c40c7fdcc336720c2 (patch) | |
tree | 4a436c03d367c4b54ddeb6fb483bfb67dc80990e /src/backends | |
parent | e7a88dc6b2eed37d513cf33396d6cf35e8a049cc (diff) | |
download | mutter-ac8fe2d9b2a0723cab0f955c40c7fdcc336720c2.tar.gz |
cursor-tracker: Port to GdkSeat API
Diffstat (limited to 'src/backends')
-rw-r--r-- | src/backends/meta-cursor-tracker.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backends/meta-cursor-tracker.c b/src/backends/meta-cursor-tracker.c index 6728f4bac..ccb1e89e8 100644 --- a/src/backends/meta-cursor-tracker.c +++ b/src/backends/meta-cursor-tracker.c @@ -361,12 +361,12 @@ get_pointer_position_gdk (int *x, int *y, int *mods) { - GdkDeviceManager *gmanager; + GdkSeat *gseat; GdkDevice *gdevice; GdkScreen *gscreen; - gmanager = gdk_display_get_device_manager (gdk_display_get_default ()); - gdevice = gdk_x11_device_manager_lookup (gmanager, META_VIRTUAL_CORE_POINTER_ID); + gseat = gdk_display_get_default_seat (gdk_display_get_default ()); + gdevice = gdk_seat_get_pointer (gseat); gdk_device_get_position (gdevice, &gscreen, x, y); if (mods) |