[mutter/wayland] cursor-tracker: Avoid unnecessary round trip



commit abd2abcde67cddacdda03323138f9fb130e4eb15
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 c718dd4..e20d70e 100644
--- a/src/core/meta-cursor-tracker.c
+++ b/src/core/meta-cursor-tracker.c
@@ -1074,7 +1074,7 @@ get_pointer_position_gdk (int         *x,
   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);
   if (mods)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]