summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2010-12-05 00:25:04 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2010-12-05 00:25:04 +0800
commit51e01727d309f39e3f42ecf6b53b4ebb31a385dc (patch)
tree96d86b173e4c31044e3a6285b4b4bf4696d0e23a
parent7672888c79f96e416a52e6787486cf6d555fcb02 (diff)
downloadunity-window-decorator-51e01727d309f39e3f42ecf6b53b4ebb31a385dc.tar.gz
unity-window-decorator-51e01727d309f39e3f42ecf6b53b4ebb31a385dc.tar.bz2
Fix windows being forever treated as "not managed" in focus () and not entering into scale mode, etc
We need to re-set unmanaging too once managed is set again
-rw-r--r--plugins/scale/src/scale.cpp1
-rw-r--r--src/event.cpp1
2 files changed, 1 insertions, 1 deletions
diff --git a/plugins/scale/src/scale.cpp b/plugins/scale/src/scale.cpp
index 129a3d9..92b269d 100644
--- a/plugins/scale/src/scale.cpp
+++ b/plugins/scale/src/scale.cpp
@@ -79,7 +79,6 @@ PrivateScaleWindow::isScaleWin () const
if (window->state () & CompWindowStateShadedMask)
return false;
-
if (!window->mapNum () || !window->isViewable ())
return false;
diff --git a/src/event.cpp b/src/event.cpp
index 4d7a2c6..7cf032a 100644
--- a/src/event.cpp
+++ b/src/event.cpp
@@ -1045,6 +1045,7 @@ CompScreen::handleEvent (XEvent *event)
if (!w->priv->frame)
w->priv->reparent ();
w->priv->managed = true;
+ w->priv->unmanaging = false;
}
/* been shaded */