Conditionalize use of gdk_pointer_is_grabbed()