diff --git a/src/core/window.c b/src/core/window.c index 92706c8ec..9a6d7555d 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -8605,6 +8605,22 @@ meta_window_is_override_redirect (MetaWindow *window) return window->override_redirect; } +/** + * meta_window_is_skip_taskbar: + * @window: A #MetaWindow + * + * Gets whether this window should be ignored by task lists. + * + * Return value: %TRUE if the skip bar hint is set. + */ +gboolean +meta_window_is_skip_taskbar (MetaWindow *window) +{ + g_return_val_if_fail (META_IS_WINDOW (window), FALSE); + + return window->skip_taskbar; +} + MetaRectangle * meta_window_get_rect (MetaWindow *window) { diff --git a/src/include/window.h b/src/include/window.h index fb7c0772b..5aaa58842 100644 --- a/src/include/window.h +++ b/src/include/window.h @@ -71,6 +71,7 @@ MetaFrame *meta_window_get_frame (MetaWindow *window); gboolean meta_window_has_focus (MetaWindow *window); gboolean meta_window_is_shaded (MetaWindow *window); gboolean meta_window_is_override_redirect (MetaWindow *window); +gboolean meta_window_is_skip_taskbar (MetaWindow *window); MetaRectangle *meta_window_get_rect (MetaWindow *window); void meta_window_get_outer_rect (const MetaWindow *window, MetaRectangle *rect); MetaScreen *meta_window_get_screen (MetaWindow *window);