aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--src/FocusControl.cc7
2 files changed, 5 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 8db797a..6218194 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
1 (Format: Year/Month/Day) 1 (Format: Year/Month/Day)
2Changes for 1.0rc3: 2Changes for 1.0rc3:
3*06/12/28:
4 * Allow focus to revert to stuck windows (Mark)
5 FocusControl.cc
3*06/12/27: 6*06/12/27:
4 * Don't assume "Jump" and "*Hidden" say "yes" in apps file (Mark) 7 * Don't assume "Jump" and "*Hidden" say "yes" in apps file (Mark)
5 * Jump to autogrouped windows on another workspace if set to do so in 8 * Jump to autogrouped windows on another workspace if set to do so in
diff --git a/src/FocusControl.cc b/src/FocusControl.cc
index 014a9df..d3e6838 100644
--- a/src/FocusControl.cc
+++ b/src/FocusControl.cc
@@ -190,11 +190,8 @@ WinClient *FocusControl::lastFocusedWindow(int workspace) {
190 FocusedWindows::iterator it_end = m_focused_list.end(); 190 FocusedWindows::iterator it_end = m_focused_list.end();
191 for (; it != it_end; ++it) { 191 for (; it != it_end; ++it) {
192 if ((*it)->fbwindow() && 192 if ((*it)->fbwindow() &&
193 (((int)(*it)->fbwindow()->workspaceNumber()) == workspace 193 ((((int)(*it)->fbwindow()->workspaceNumber()) == workspace ||
194 && !(*it)->fbwindow()->isIconic() 194 (*it)->fbwindow()->isStuck()) && !(*it)->fbwindow()->isIconic()))
195 && (!(*it)->fbwindow()->isStuck() || (*it)->fbwindow()->isFocused())))
196 // only give focus to a stuck window if it is currently focused
197 // otherwise they tend to override normal workspace focus
198 return *it; 195 return *it;
199 } 196 }
200 return 0; 197 return 0;