[gnome-shell/gnome-41] shell/window-tracker: Do not filter tracked windows by type

commit 69d98aac6bc27a34df439db4a77b8a212eb8fb86
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Nov 11 18:40:42 2021 +0100

    shell/window-tracker: Do not filter tracked windows by type
    The window-type property may change, and with it the skip-taskbar
    property that decides whether we consider it "interesting".
    As a result we can end up showing untracked window, i.e. one
    which does not have an associated app.
    Cover this case by simply tracking all windows regardless of
    their type. This won't change the app's running state, as that
    is solely based on the skip-taskbar property (which is enforced
    for all previously excluded window types).
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2071>

 src/shell-window-tracker.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/src/shell-window-tracker.c b/src/shell-window-tracker.c
index 5c9d2ec80a..4fb2542640 100644
--- a/src/shell-window-tracker.c
+++ b/src/shell-window-tracker.c
@@ -553,14 +553,7 @@ shell_window_tracker_on_window_added (MetaWorkspace   *workspace,
                                       MetaWindow      *window,
                                       gpointer         user_data)
-  ShellWindowTracker *self = SHELL_WINDOW_TRACKER (user_data);
-  MetaWindowType window_type = meta_window_get_window_type (window);
-  if (window_type == META_WINDOW_NORMAL ||
-      window_type == META_WINDOW_DIALOG ||
-      window_type == META_WINDOW_UTILITY ||
-      window_type == META_WINDOW_MODAL_DIALOG)
-    track_window (self, window);
+  track_window (SHELL_WINDOW_TRACKER (user_data), window);
 static void

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