summaryrefslogtreecommitdiff
path: root/tile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tile.cpp')
-rw-r--r--tile.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/tile.cpp b/tile.cpp
index ddd180e..b77610d 100644
--- a/tile.cpp
+++ b/tile.cpp
@@ -590,8 +590,8 @@ Tiler::Tiler () :
void
Tiler::save (CompWindow *w)
{
- saved.setGeometry (w->serverX (), w->serverY (),
- w->serverWidth (), w->serverHeight ());
+ saved.setGeometry (w->serverX (), w->serverX () + w->serverWidth (),
+ w->serverY (), w->serverY () + w->serverHeight ());
maximized = w->state () & MAXIMIZE_STATE;
@@ -783,7 +783,10 @@ TileScreen::applyTiling (CompAction *action,
border.bottom = w->input ().bottom;
if (!tw->tiler)
+ {
tw->tiler = new Tiler;
+ tw->tiler->save (w);
+ }
count++;
}