explicitly set s_focusedWindow for cycle protection

This commit is contained in:
Thomas Lübking 2016-07-30 09:04:54 +02:00
parent 87c0182ea5
commit f6132b7602

View file

@ -595,6 +595,8 @@ void FocusControl::setFocusedWindow(WinClient *client) {
// if we're currently cycling and the client tries to juggle around focus
// on FocusIn events to provide client-side modality - don't let him
next->focus();
if (WinClient *nextClient = dynamic_cast<WinClient*>(next))
setFocusedWindow(nextClient); // doesn't happen automatically while cycling, 1148
return;
}
}