summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2009-02-21 18:27:04 +0900
committerSam Spilsbury <smspillaz@gmail.com>2009-02-21 18:27:04 +0900
commit6b12eba69bc8e6ba1d0a3b0dc36461a906ffcea6 (patch)
treed68673ec08d929d5dab354b4468330855d5f6803
parent4e34417aa3b42bb6fb43df051f83427f7053cef1 (diff)
downloadtile-6b12eba69bc8e6ba1d0a3b0dc36461a906ffcea6.tar.gz
tile-6b12eba69bc8e6ba1d0a3b0dc36461a906ffcea6.tar.bz2
Semi-working restore functionality
-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++;
}