From 809f819e6f93a599e6312d5c4f226b339b9456f1 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 23 Jul 2002 20:54:40 +0000 Subject: [PATCH] dont ignore full maxed windows while they are shaded just because they are full maxed --- src/Workspace.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Workspace.cc b/src/Workspace.cc index 366e8192..a7887945 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc @@ -615,8 +615,12 @@ bool Workspace::smartPlacement(Rect& win) { for (; wit != end; ++wit) { const BlackboxWindow* const curr = *wit; - if (curr->isShaded() && screen->getPlaceIgnoreShaded()) continue; - if (curr->isMaximizedFull() && screen->getPlaceIgnoreMaximized()) continue; + // watch for shaded windows and full-maxed windows + if (curr->isShaded()) { + if (screen->getPlaceIgnoreShaded()) continue; + } else if (curr->isMaximizedFull()) { + if (screen->getPlaceIgnoreMaximized()) continue; + } tmp.setRect(curr->frameRect().x(), curr->frameRect().y(), curr->frameRect().width() + screen->getBorderWidth(), -- 2.45.2