Avoid call to gdk_display_get_core_pointer which is gone in Gtk3