summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKimmo Hämäläinen <kimmo.hamalainen@nokia.com>2010-12-07 18:42:14 +0200
committerAdam Endrodi <ext-adam.endrodi@nokia.com>2010-12-14 14:39:58 +0200
commit40f5659c4441fb48fde5b12c65d833a62a82ebe3 (patch)
tree4900c897baa193be18bd7c73fa42c41ce9ce23b0
parent07043d3a122c370518ef606e8c914f5976630970 (diff)
MCompositeManagerPrivate::addItem(): use property cache to get the window type
-rw-r--r--src/mcompositemanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mcompositemanager.cpp b/src/mcompositemanager.cpp
index 411e6d9..2a2d92a 100644
--- a/src/mcompositemanager.cpp
+++ b/src/mcompositemanager.cpp
@@ -3309,7 +3309,8 @@ void MCompositeManagerPrivate::addItem(MCompositeWindow *item)
updateWinList();
setWindowDebugProperties(item->window());
- if (atom->windowType(item->window()) == MCompAtoms::DESKTOP) {
+ if (item->propertyCache() && item->propertyCache()->windowType()
+ == MCompAtoms::DESKTOP) {
connect(item, SIGNAL(desktopActivated(MCompositeWindow *)),
SLOT(onDesktopActivated(MCompositeWindow *)));
return;