aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkt <markt>2006-12-28 18:11:17 (GMT)
committermarkt <markt>2006-12-28 18:11:17 (GMT)
commita58453fac24c4c4b2987e9716d87ef3f59f312d8 (patch)
tree22b94f826d7af514e9c6fdca5100763a48a2daa7
parente9f7c0f2c03706e39fd97ec39a20aad5517f0371 (diff)
downloadfluxbox_pavel-a58453fac24c4c4b2987e9716d87ef3f59f312d8.zip
fluxbox_pavel-a58453fac24c4c4b2987e9716d87ef3f59f312d8.tar.bz2
allow focus to revert to stuck windows, and we'll see if it still causes
problems with normal focus -- that comment is older than FocusControl.cc, and I've made a lot of changes to focus handling since then; just disabling it wasn't the right thing to do, anyway
-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;