summaryrefslogtreecommitdiffstats
path: root/twin/placement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'twin/placement.cpp')
-rw-r--r--twin/placement.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/twin/placement.cpp b/twin/placement.cpp
index bea707d1f..8112b7157 100644
--- a/twin/placement.cpp
+++ b/twin/placement.cpp
@@ -362,12 +362,17 @@ void Placement::placeCascaded (Client* c, TQRect& area, Policy nextPlacement)
if ((yp + ch) > H) yp = Y;
if ((xp + cw) > W)
- if (!yp)
+ {
+ if (!yp)
{
place(c,area,nextPlacement);
return;
}
- else xp = X;
+ }
+ else
+ {
+ xp = X;
+ }
//if this isn't the first window
if (cci[dn].pos.x() != X && cci[dn].pos.y() != Y)