use window role to detect dashboard

BUG: 302523
FIXED-IN: 4.9
REVIEW: 105382
icc-effect-5.14.5
Thomas Lübking 2012-06-28 21:08:46 +02:00
parent bcbd7181f1
commit 9c1b7f823c
1 changed files with 1 additions and 5 deletions

View File

@ -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)