From 06c647d220fff7570706be430adcbc913d0dffa9 Mon Sep 17 00:00:00 2001 From: pekdon Date: Sat, 5 Jan 2002 17:55:53 +0000 Subject: fixed a bug that made the tabs not to follow when shading --- src/Windowmenu.cc | 5 +++-- 1 file 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) { switch (item->function()) { case BScreen::WindowShade: hide(); - if (window->getTab()) - window->getTab()->shade(); + window->shade(); + if (window->hasTab()) + window->getTab()->shade(); break; case BScreen::WindowIconify: -- cgit v0.11.2