Fix checking whether ActivityFocusForce is set

BUG: 335770
This commit is contained in:
Martin Gräßlin 2014-06-05 09:29:37 +02:00
parent f747f370b3
commit 902e424f81

View file

@ -367,7 +367,7 @@ void Workspace::takeActivity(Client* c, ActivityFlags flags)
}
cancelDelayFocus();
}
if (!(flags & ActivityFocusForce) && (c->isDock() || c->isSplash()))
if (!flags.testFlag(ActivityFocusForce) && (c->isDock() || c->isSplash()))
flags &= ~ActivityFocus; // toplevel menus and dock windows don't take focus if not forced
if (c->isShade()) {
if (c->wantsInput() && (flags & ActivityFocus)) {