summaryrefslogtreecommitdiff
path: root/src/Windowmenu.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Windowmenu.cc')
-rw-r--r--src/Windowmenu.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Windowmenu.cc b/src/Windowmenu.cc
index 613d6a4..e154ea6 100644
--- a/src/Windowmenu.cc
+++ b/src/Windowmenu.cc
@@ -177,9 +177,10 @@ void Windowmenu::itemSelected(int button, int index) {
177 switch (item->function()) { 177 switch (item->function()) {
178 case BScreen::WindowShade: 178 case BScreen::WindowShade:
179 hide(); 179 hide();
180 if (window->getTab()) 180
181 window->getTab()->shade();
182 window->shade(); 181 window->shade();
182 if (window->hasTab())
183 window->getTab()->shade();
183 break; 184 break;
184 185
185 case BScreen::WindowIconify: 186 case BScreen::WindowIconify: