mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
MetaCursorTracker: fix uninitialized screen variable
We must call gdk_device_get_pointer() unconditionally, because that sets the GdkScreen argument we use to obtain the root window.
This commit is contained in:
parent
54df7934ea
commit
a8f4651c72
@ -1076,7 +1076,6 @@ get_pointer_position_gdk (int *x,
|
|||||||
gmanager = gdk_display_get_device_manager (gdk_display_get_default ());
|
gmanager = gdk_display_get_device_manager (gdk_display_get_default ());
|
||||||
gdevice = gdk_device_manager_get_client_pointer (gmanager);
|
gdevice = gdk_device_manager_get_client_pointer (gmanager);
|
||||||
|
|
||||||
if (x || y)
|
|
||||||
gdk_device_get_position (gdevice, &gscreen, x, y);
|
gdk_device_get_position (gdevice, &gscreen, x, y);
|
||||||
if (mods)
|
if (mods)
|
||||||
gdk_device_get_state (gdevice,
|
gdk_device_get_state (gdevice,
|
||||||
|
Loading…
Reference in New Issue
Block a user