From 9c1b7f823cc0345d270fe4f7ae910cb095aca2ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Thu, 28 Jun 2012 21:08:46 +0200 Subject: [PATCH] use window role to detect dashboard BUG: 302523 FIXED-IN: 4.9 REVIEW: 105382 --- effects/dashboard/dashboard.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/effects/dashboard/dashboard.cpp b/effects/dashboard/dashboard.cpp index bb803a9b6a..f5832f4b99 100644 --- a/effects/dashboard/dashboard.cpp +++ b/effects/dashboard/dashboard.cpp @@ -144,11 +144,7 @@ void DashboardEffect::postPaintScreen() bool DashboardEffect::isDashboard(EffectWindow *w) { - if (w->windowClass() == "dashboard dashboard") { - return true; - } else { - return false; - } + return w->windowRole() == "plasma-dashboard"; } void DashboardEffect::slotWindowActivated(EffectWindow *w)