summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2011-04-21 09:09:45 +0200
committerDanny Baumann <dannybaumann@web.de>2011-04-21 09:09:45 +0200
commitefd6cebe732a6f70fbe636307bcd54c55d6351f6 (patch)
tree29ea9818d599fad8f6b994350a3d5c06dc646da3
parentcd5c0faa0e7f180bb73e05cb41bd1a7a27e8e0a8 (diff)
downloadsession-efd6cebe732a6f70fbe636307bcd54c55d6351f6.tar.gz
session-efd6cebe732a6f70fbe636307bcd54c55d6351f6.tar.bz2
Restore state before position, to make sure to not mess up the position
of sticky windows.
-rw-r--r--session.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/session.c b/session.c
index ef93b05..065613b 100644
--- a/session.c
+++ b/session.c
@@ -659,6 +659,9 @@ sessionReadWindow (CompWindow *w)
return FALSE;
/* found a window */
+
+ changeWindowState (w, (w->state & ~SAVED_WINDOW_STATE) | cur->state);
+
if (cur->geometryValid)
{
xwcm = CWX | CWY;
@@ -696,7 +699,6 @@ sessionReadWindow (CompWindow *w)
if (cur->workspace != -1)
setDesktopForWindow (w, cur->workspace);
- changeWindowState (w, (w->state & ~SAVED_WINDOW_STATE) | cur->state);
updateWindowAttributes (w, CompStackingUpdateModeNone);
/* remove item from list */