diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-07-23 20:54:40 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-07-23 20:54:40 +0000 |
| commit | 809f819e6f93a599e6312d5c4f226b339b9456f1 (patch) | |
| tree | 64e9c55c1ba7fb2e826605c5f7233b1d5be4133c /src/Workspace.cc | |
| parent | 5cb2020b9b9cd146d7a5dffa47b44110d8d963ff (diff) | |
dont ignore full maxed windows while they are shaded just because they are full maxed
Diffstat (limited to 'src/Workspace.cc')
| -rw-r--r-- | src/Workspace.cc | 8 |
1 files 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(), |
