From 4f91cfb5a64be962afb3ecf2f88dbcbcca65849a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 11 Nov 2021 18:40:42 +0100 Subject: [PATCH] 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: --- 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 5c9d2ec80..4fb254264 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