summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2008-10-02 09:37:55 +0200
committerDanny Baumann <dannybaumann@web.de>2008-10-02 09:37:55 +0200
commit778a39ee1f27112a7c579e16fe42acecbb3a62f6 (patch)
tree792480b6a0ccbffa5e625aa32f4f95cdaed3fea9 /src
parent5d1e6250f762771990093ae5507446cc5b98b186 (diff)
Make sure window state property is correct when mapping windows.
Diffstat (limited to 'src')
-rw-r--r--src/event.c1
-rw-r--r--src/window.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/event.c b/src/event.c
index 2a088b0c..1039ec7c 100644
--- a/src/event.c
+++ b/src/event.c
@@ -2069,6 +2069,7 @@ handleEvent (CompDisplay *d,
{
w->pendingMaps++;
XMapWindow (d->display, w->id);
+ setWindowState (d, w->id, w->state);
}
if (allowFocus)
diff --git a/src/window.c b/src/window.c
index 8a3b12c8..ba576f1a 100644
--- a/src/window.c
+++ b/src/window.c
@@ -4590,6 +4590,7 @@ showWindow (CompWindow *w)
XMapWindow (w->screen->display->display, w->id);
changeWindowState (w, w->state & ~CompWindowStateHiddenMask);
+ setWindowState (w->screen->display, w->state, w->id);
}
static void