From 64b31e9770b4a7470f67b40398f9245ca59d0076 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 30 Jan 2014 16:42:08 +0100 Subject: [PATCH] window-tracker: Use MetaWindow:skip-taskbar The code from shell_window_tracker_is_window_interesting() is equivalent of MetaWindow's skip-taskbar property, so use it to avoid code duplication. https://bugzilla.gnome.org/show_bug.cgi?id=723308 --- src/shell-window-tracker.c | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/src/shell-window-tracker.c b/src/shell-window-tracker.c index d0d0a9ae3..f00dadf1d 100644 --- a/src/shell-window-tracker.c +++ b/src/shell-window-tracker.c @@ -144,37 +144,7 @@ shell_window_tracker_class_init (ShellWindowTrackerClass *klass) gboolean shell_window_tracker_is_window_interesting (MetaWindow *window) { - if (meta_window_is_override_redirect (window) - || meta_window_is_skip_taskbar (window)) - return FALSE; - - switch (meta_window_get_window_type (window)) - { - /* Definitely ignore these. */ - case META_WINDOW_DESKTOP: - case META_WINDOW_DOCK: - case META_WINDOW_SPLASHSCREEN: - /* Should have already been handled by override_redirect above, - * but explicitly list here so we get the "unhandled enum" - * warning if in the future anything is added.*/ - case META_WINDOW_DROPDOWN_MENU: - case META_WINDOW_POPUP_MENU: - case META_WINDOW_TOOLTIP: - case META_WINDOW_NOTIFICATION: - case META_WINDOW_COMBO: - case META_WINDOW_DND: - case META_WINDOW_OVERRIDE_OTHER: - return FALSE; - case META_WINDOW_NORMAL: - case META_WINDOW_DIALOG: - case META_WINDOW_MODAL_DIALOG: - case META_WINDOW_MENU: - case META_WINDOW_TOOLBAR: - case META_WINDOW_UTILITY: - break; - } - - return TRUE; + return !meta_window_is_skip_taskbar (window); } /*