Browse Source

Taskbar: Remove window buttons from the taskbar when appropriate

Andreas Kling 5 years ago
parent
commit
df837562ad
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Applications/Taskbar/WindowList.h

+ 2 - 0
Applications/Taskbar/WindowList.h

@@ -15,6 +15,8 @@ public:
 
     ~Window()
     {
+        if (m_button)
+            m_button->remove_from_parent();
     }
 
     WindowIdentifier identifier() const { return m_identifier; }