From 9545871f7a0d44edf400715cd8cdd21d78f36884 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Thu, 19 Jul 2007 19:21:57 +0000 Subject: minor fix for alt-tab --- src/FocusControl.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/FocusControl.cc b/src/FocusControl.cc index c333005..7b2fecd 100644 --- a/src/FocusControl.cc +++ b/src/FocusControl.cc @@ -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 -- cgit v0.11.2