summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2009-12-14 15:22:03 +0100
committerDanny Baumann <dannybaumann@web.de>2009-12-14 15:22:03 +0100
commite2eb5145e53464199d4261c2b00ad8110b2d2e66 (patch)
tree4166478d9cd6c5367eda8bd225f8d0ee5a96017f
parentb14142c1c8422329886a0edd8847ad46911068ea (diff)
downloadstaticswitcher-e2eb5145e53464199d4261c2b00ad8110b2d2e66.tar.gz
staticswitcher-e2eb5145e53464199d4261c2b00ad8110b2d2e66.tar.bz2
Fix crash.
-rw-r--r--staticswitcher.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/staticswitcher.c b/staticswitcher.c
index 5b2da36..37f5c20 100644
--- a/staticswitcher.c
+++ b/staticswitcher.c
@@ -567,9 +567,6 @@ switchShowPopup (void *closure)
else
{
XMapWindow (s->display->display, ss->popupWindow);
- /* we don't get a MapRequest for internal window creations, so we
- need to set the managed state ourselves */
- w->managed = TRUE;
}
damageScreen (s);
@@ -1187,6 +1184,9 @@ switchHandleEvent (CompDisplay *d,
if (w->id == ss->popupWindow)
{
+ /* we don't get a MapRequest for internal window creations,
+ so we need to set the internals ourselves */
+ w->managed = TRUE;
w->wmType = getWindowType (d, w->id);
recalcWindowType (w);
recalcWindowActions (w);