Gets the current location of device. As a slave device coordinates are those of its master pointer, This function may not be called on devices of type GDK_DEVICE_TYPE_SLAVE, unless there is an ongoing grab on them, see Device.grab.
location to store the gdk.Screen the device is on, or NULL.
location to store root window X coordinate of device, or NULL.
location to store root window Y coordinate of device, or NULL.
3.0
Gets the current location of device. As a slave device coordinates are those of its master pointer, This function may not be called on devices of type GDK_DEVICE_TYPE_SLAVE, unless there is an ongoing grab on them, see Device.grab.