mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
cursor-tracker: Port to GdkSeat API
This commit is contained in:
parent
e7a88dc6b2
commit
ac8fe2d9b2
@ -361,12 +361,12 @@ get_pointer_position_gdk (int *x,
|
|||||||
int *y,
|
int *y,
|
||||||
int *mods)
|
int *mods)
|
||||||
{
|
{
|
||||||
GdkDeviceManager *gmanager;
|
GdkSeat *gseat;
|
||||||
GdkDevice *gdevice;
|
GdkDevice *gdevice;
|
||||||
GdkScreen *gscreen;
|
GdkScreen *gscreen;
|
||||||
|
|
||||||
gmanager = gdk_display_get_device_manager (gdk_display_get_default ());
|
gseat = gdk_display_get_default_seat (gdk_display_get_default ());
|
||||||
gdevice = gdk_x11_device_manager_lookup (gmanager, META_VIRTUAL_CORE_POINTER_ID);
|
gdevice = gdk_seat_get_pointer (gseat);
|
||||||
|
|
||||||
gdk_device_get_position (gdevice, &gscreen, x, y);
|
gdk_device_get_position (gdevice, &gscreen, x, y);
|
||||||
if (mods)
|
if (mods)
|
||||||
|
Loading…
Reference in New Issue
Block a user