Sophie

Sophie

distrib > Mandriva > 2009.0 > x86_64 > media > main-testing-src > by-pkgid > 0257cb64e4491c9033bccc46653056d9 > files > 2

compiz-0.7.8-3mdv2009.0.src.rpm

From 56780120d019f8004097ed6662f8ca7b0f1e5e25 Mon Sep 17 00:00:00 2001
From: Danny Baumann <dannybaumann@web.de>
Date: Wed, 17 Sep 2008 12:16:19 +0200
Subject: [PATCH] Update switcher window internal state on map.

---
 plugins/switcher.c |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/plugins/switcher.c b/plugins/switcher.c
index b2d9777..adec700 100644
--- a/plugins/switcher.c
+++ b/plugins/switcher.c
@@ -1088,6 +1088,23 @@ switchHandleEvent (CompDisplay *d,
     CompWindow *w;
     SWITCH_DISPLAY (d);
 
+    switch (event->type) {
+	w = findWindowAtDisplay (d, event->xmap.window);
+	if (w)
+	{
+	    SWITCH_SCREEN (w->screen);
+
+	    if (w->id == ss->popupWindow)
+	    {
+		w->wmType = getWindowType (d, w->id);
+		recalcWindowType (w);
+		recalcWindowActions (w);
+		updateWindowClassHints (w);
+	    }
+	}
+	break;
+    }
+
     UNWRAP (sd, d, handleEvent);
     (*d->handleEvent) (d, event);
     WRAP (sd, d, handleEvent, switchHandleEvent);
-- 
1.6.0.2