From 902e424f8171719a07f6376a9b1ebe47ecb322b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 5 Jun 2014 09:29:37 +0200 Subject: [PATCH] Fix checking whether ActivityFocusForce is set BUG: 335770 --- activation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activation.cpp b/activation.cpp index df942c4150..a8e914fbad 100644 --- a/activation.cpp +++ b/activation.cpp @@ -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)) {