[mutter] cursor-tracker: Avoid unnecessary round trip
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] cursor-tracker: Avoid unnecessary round trip
- Date: Thu, 6 Mar 2014 18:20:44 +0000 (UTC)
commit 34a9c95b7fc0b8ea2be57f708f913c7cf089db24
Author: Adel Gadllah <adel gadllah gmail com>
Date: Thu Mar 6 17:31:00 2014 +0100
cursor-tracker: Avoid unnecessary round trip
src/core/meta-cursor-tracker.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/core/meta-cursor-tracker.c b/src/core/meta-cursor-tracker.c
index 84f3185..af58af8 100644
--- a/src/core/meta-cursor-tracker.c
+++ b/src/core/meta-cursor-tracker.c
@@ -386,7 +386,7 @@ meta_cursor_tracker_get_pointer (MetaCursorTracker *tracker,
GdkScreen *gscreen;
gmanager = gdk_display_get_device_manager (gdk_display_get_default ());
- gdevice = gdk_device_manager_get_client_pointer (gmanager);
+ gdevice = gdk_x11_device_manager_lookup (gmanager, META_VIRTUAL_CORE_POINTER_ID);
gdk_device_get_position (gdevice, &gscreen, x, y);
gdk_device_get_state (gdevice,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]