Conditionalize use of gdk_display_get_pointer()