mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
ui: Don't use gdk_device_manager_get_client_pointer
gdk_device_manager_get_client_pointer which in calls XIGetClientPointer seems to be very slow in a XI2 world. So use gdk_x11_device_manager_lookup (gmanager, META_VIRTUAL_CORE_POINTER_ID) instead. https://bugzilla.gnome.org/show_bug.cgi?id=693354
This commit is contained in:
parent
6f74a63bbd
commit
b33b4a8e2c
@ -151,7 +151,7 @@ maybe_redirect_mouse_event (XEvent *xevent)
|
||||
return FALSE;
|
||||
|
||||
gmanager = gdk_display_get_device_manager (gdisplay);
|
||||
gdevice = gdk_device_manager_get_client_pointer (gmanager);
|
||||
gdevice = gdk_x11_device_manager_lookup (gmanager, META_VIRTUAL_CORE_POINTER_ID);
|
||||
|
||||
/* If GDK already thinks it has a grab, we better let it see events; this
|
||||
* is the menu-navigation case and events need to get sent to the appropriate
|
||||
|
Loading…
Reference in New Issue
Block a user