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
This commit is contained in:
parent
e9f7c0f2c0
commit
a58453fac2
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -190,11 +190,8 @@ WinClient *FocusControl::lastFocusedWindow(int workspace) {
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue