[mutter] Add meta_window_is_skip_taskbar



commit 7e0087304bba535334d8b0fa39ad7d7b5cfa794c
Author: Steve Frécinaux <code istique net>
Date:   Fri Aug 28 18:39:55 2009 +0200

    Add meta_window_is_skip_taskbar
    
    Accessor for the 'skip-taskbar', which will allow gnome-shell not to
    consider windows with this hint in its overview thunbnails.

 src/core/window.c    |   16 ++++++++++++++++
 src/include/window.h |    1 +
 2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 92706c8..9a6d755 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 fb7c077..5aaa588 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]