summaryrefslogtreecommitdiff
path: root/src/event.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.cpp')
-rw-r--r--src/event.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/event.cpp b/src/event.cpp
index 71f1675..ed30e05 100644
--- a/src/event.cpp
+++ b/src/event.cpp
@@ -1032,7 +1032,11 @@ CompScreen::handleEvent (XEvent *event)
if (w)
{
if (w->priv->pendingMaps)
+ {
+ if (!w->priv->frame)
+ w->priv->reparent ();
w->priv->managed = true;
+ }
/* been shaded */
if (w->priv->height == 0)
@@ -1073,6 +1077,10 @@ CompScreen::handleEvent (XEvent *event)
w->priv->placed = false;
w->priv->managed = false;
+ if (w->priv->frame)
+ {
+ w->priv->unreparent ();
+ }
}
w->unmap ();