minor fix for alt-tab

This commit is contained in:
fluxgen 2007-07-19 19:21:57 +00:00
parent 8de73d0fd4
commit 9545871f7a

View file

@ -123,7 +123,11 @@ void FocusControl::cycleFocus(FocusedWindows &window_list, int opts, bool cycle_
continue;
fbwin = (*it)->fbwindow();
if (!fbwin)
// make sure the window is on the same workspace,
// unless its sticky, which is ok
if (!fbwin ||
( fbwin->workspaceNumber() != m_screen.currentWorkspaceID() &&
! fbwin->isStuck()))
continue;
// keep track of the originally selected window in a group