From: Thomas Lübking Date: Thu, 22 Jan 2015 00:11:54 +0000 Subject: consult rulebook on honoring a 0 usertime X-Git-Tag: v5.2.95 X-Git-Url: http://quickgit.kde.org/?p=kwin.git&a=commitdiff&h=6957e1cf1ad5278e7d02daaf95a4bd2c4f10c858 --- consult rulebook on honoring a 0 usertime apparently some clients (randomly?) set _NET_WM_USER_TIME to 0 (recorded for libreoffice, audacity and perhaps firefox), so we allow to forcefully have them accept the focus here CCBUG: 340915 REVIEW: 122195 --- --- a/kwin/activation.cpp +++ b/kwin/activation.cpp @@ -556,8 +556,10 @@ // got FocusOut, and therefore got deactivated. ac = last_active_client; } - if (time == 0) // explicitly asked not to get focus - return false; + if (time == 0) { // explicitly asked not to get focus + if (!c->rules()->checkAcceptFocus(false)) + return false; + } if (level == 0) // none return true; if (level == 4) // extreme