summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2008-03-17 09:59:05 +0100
committerDanny Baumann <dannybaumann@web.de>2008-03-17 09:59:05 +0100
commitde96bc7a2b0a74fa9ad2a7777f7e8a009066c8e5 (patch)
tree59f9b4a119278b107ed79eb6de14ed8e1fe1b437
parent747c54413cd6c7cc24015511915c4a1b5a47e586 (diff)
downloadtile-de96bc7a2b0a74fa9ad2a7777f7e8a009066c8e5.tar.gz
tile-de96bc7a2b0a74fa9ad2a7777f7e8a009066c8e5.tar.bz2
Send out sync request when changing window size.
-rw-r--r--tile.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/tile.c b/tile.c
index 7e47195..b54edf8 100644
--- a/tile.c
+++ b/tile.c
@@ -704,6 +704,7 @@ static Bool
tileSetNewWindowSize (CompWindow *w)
{
XWindowChanges xwc;
+ unsigned int mask = CWX | CWY | CWWidth | CWHeight;
TILE_WINDOW (w);
TILE_SCREEN (w->screen);
@@ -721,7 +722,16 @@ tileSetNewWindowSize (CompWindow *w)
else
maximizeWindow (w, 0);
- configureXWindow (w, CWX | CWY | CWWidth | CWHeight, &xwc);
+ if (xwc.width == w->serverWidth)
+ mask &= ~CWWidth;
+
+ if (xwc.height == w->serverHeight)
+ mask &= ~CWHeight;
+
+ if (w->mapNum && (mask & (CWWidth | CWHeight)))
+ sendSyncRequest (w);
+
+ configureXWindow (w, mask, &xwc);
tw->needConfigure = FALSE;
return TRUE;