fix problems with focus order when changing workspaces
markt markt
2 files changed,
7 insertions(+),
2 deletions(-)
M
src/FocusControl.cc
→
src/FocusControl.cc
@@ -421,10 +421,12 @@ void FocusControl::revertFocus(BScreen &screen) {
if (s_reverting) return; - FocusControl::s_reverting = true; - WinClient *next_focus = screen.focusControl().lastFocusedWindow(screen.currentWorkspaceID()); + + if (next_focus && next_focus->fbwindow() && + next_focus->fbwindow()->isStuck()) + FocusControl::s_reverting = true; // if setting focus fails, or isn't possible, fallback correctly if (!(next_focus && next_focus->focus())) {