[6fc8f95bc6465849249d974d53eecc56c00ffda0fc3c7024bfa5b8e4d794b072/gnome-3-36] altTab: Remove down arrow when removing an app from switcher



commit 12b31e6bd05b405389244e9fdd3a77ecab0b0c46
Author: Sebastian Keller <skeller gnome org>
Date:   Mon Jun 29 22:51:41 2020 +0200

    altTab: Remove down arrow when removing an app from switcher
    
    The arrow of the removed app was still left in the list with the
    visibility of the arrow still depending on the original list order. This
    could either lead to apps with just one window now suddenly having a
    down arrow or apps with multiple windows not having one. If the last
    window in the list had a down arrow, it would have been displayed
    outside the window switcher.
    
    Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2935
    
    https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1340

 js/ui/altTab.js | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/js/ui/altTab.js b/js/ui/altTab.js
index 1c35a001e9..971f5b7b1e 100644
--- a/js/ui/altTab.js
+++ b/js/ui/altTab.js
@@ -853,6 +853,9 @@ class AppSwitcher extends SwitcherPopup.SwitcherList {
         if (index === -1)
             return;
 
+        this._arrows[index].destroy();
+        this._arrows.splice(index, 1);
+
         this.icons.splice(index, 1);
         this.removeItem(index);
     }


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