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
markt markt
2 files changed,
5 insertions(+),
5 deletions(-)
M
ChangeLog
→
ChangeLog
@@ -1,5 +1,8 @@
(Format: Year/Month/Day) Changes for 1.0rc3: +*06/12/28: + * Allow focus to revert to stuck windows (Mark) + FocusControl.cc *06/12/27: * Don't assume "Jump" and "*Hidden" say "yes" in apps file (Mark) * Jump to autogrouped windows on another workspace if set to do so in
M
src/FocusControl.cc
→
src/FocusControl.cc
@@ -190,11 +190,8 @@ FocusedWindows::iterator it = m_focused_list.begin();
FocusedWindows::iterator it_end = m_focused_list.end(); for (; it != it_end; ++it) { if ((*it)->fbwindow() && - (((int)(*it)->fbwindow()->workspaceNumber()) == workspace - && !(*it)->fbwindow()->isIconic() - && (!(*it)->fbwindow()->isStuck() || (*it)->fbwindow()->isFocused()))) - // only give focus to a stuck window if it is currently focused - // otherwise they tend to override normal workspace focus + ((((int)(*it)->fbwindow()->workspaceNumber()) == workspace || + (*it)->fbwindow()->isStuck()) && !(*it)->fbwindow()->isIconic())) return *it; } return 0;