Use 'gdk_window_get_device_position()' instead of deprecated 'gdk_window_get_pointer()'.
Working on simulator
Adapting to simulator
Adapting to simulator