summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tile.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tile.cpp b/tile.cpp
index 2a11849..e1bc521 100644
--- a/tile.cpp
+++ b/tile.cpp
@@ -574,11 +574,11 @@ TileWindow::placeWin (int x,
return false;
/* set previous coordinates for animation */
- tiler->previous.setGeometry (window->x (), window->x () + window->width (),
- window->y (), window->y () + window->height ());
+ tiler->previous.setGeometry (window->x (), window->y (),
+ window->width (), window->height ());
/* set future coordinates for animation */
- tiler->current.setGeometry (x, x + width, y, y + height);
+ tiler->current.setGeometry (x, y, width, height);
alreadyResized = false; /* window is not resized now */
needConfigure = true;
@@ -653,8 +653,8 @@ Tiler::Tiler () :
void
Tiler::save (CompWindow *w)
{
- saved.setGeometry (w->serverX (), w->serverX () + w->serverWidth (),
- w->serverY (), w->serverY () + w->serverHeight ());
+ saved.setGeometry (w->serverX (), w->serverY (),
+ w->serverWidth (), w->serverHeight ());
maximized = w->state () & MAXIMIZE_STATE;