Do not protect focus while cycling

We've better things to do and the focus is moving around anyway
BUG: 1048
This commit is contained in:
Thomas Lübking 2016-07-17 15:42:24 +02:00
parent 2758485d35
commit 635f14e5c9

View file

@ -600,6 +600,7 @@ void FocusControl::setFocusedWindow(WinClient *client) {
}
if (client && client != expectingFocus() && s_focused_window &&
(!(screen && screen->focusControl().isCycling())) &&
((s_focused_fbwindow->focusProtection() & Focus::Lock) ||
(client && client->fbwindow() && (client->fbwindow()->focusProtection() & Focus::Deny)))) {
s_focused_window->focus();