mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 12:52:14 +00:00
cursor-tracker: Avoid unnecessary round trip
This commit is contained in:
parent
dd76c92f30
commit
34a9c95b7f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user