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



commit 4f91cfb5a64be962afb3ecf2f88dbcbcca65849a
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).
    
    https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4751
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2029>

 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]