diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c index 711434651..942b86b3a 100644 --- a/src/compositor/meta-window-actor.c +++ b/src/compositor/meta-window-actor.c @@ -883,6 +883,19 @@ meta_window_actor_get_texture (MetaWindowActor *self) return self->priv->actor; } +/** + * meta_window_actor_is_destroyed: + * + * Gets whether the X window that the actor was displaying has been destroyed + * + * Return value: %TRUE when the window is destroyed, otherwise %FALSE + */ +gboolean +meta_window_actor_is_destroyed (MetaWindowActor *self) +{ + return self->priv->disposed; +} + gboolean meta_window_actor_is_override_redirect (MetaWindowActor *self) { diff --git a/src/include/meta-window-actor.h b/src/include/meta-window-actor.h index b1278bbaf..c6894e9f0 100644 --- a/src/include/meta-window-actor.h +++ b/src/include/meta-window-actor.h @@ -65,5 +65,6 @@ ClutterActor * meta_window_actor_get_texture (MetaWindowActor *self gboolean meta_window_actor_is_override_redirect (MetaWindowActor *self); const char * meta_window_actor_get_description (MetaWindowActor *self); gboolean meta_window_actor_showing_on_its_workspace (MetaWindowActor *self); +gboolean meta_window_actor_is_destroyed (MetaWindowActor *self); #endif /* META_WINDOW_ACTOR_H */