aboutsummaryrefslogtreecommitdiff
path: root/src/FocusControl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FocusControl.cc')
-rw-r--r--src/FocusControl.cc6
1 files changed, 5 insertions, 1 deletions
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_
123 continue; 123 continue;
124 124
125 fbwin = (*it)->fbwindow(); 125 fbwin = (*it)->fbwindow();
126 if (!fbwin) 126 // make sure the window is on the same workspace,
127 // unless its sticky, which is ok
128 if (!fbwin ||
129 ( fbwin->workspaceNumber() != m_screen.currentWorkspaceID() &&
130 ! fbwin->isStuck()))
127 continue; 131 continue;
128 132
129 // keep track of the originally selected window in a group 133 // keep track of the originally selected window in a group