Replaced a few instances of gdk_window_get_pointer by gdk_device_get_position