smarter window cycling, behave with omnipresent windows

This commit is contained in:
Dana Jansens 2002-07-24 09:39:18 +00:00
parent d18f6a4b55
commit 746c37b24b

View file

@ -444,6 +444,7 @@ void screen::updateActiveWindow() {
}
}
_active = it;
if (it != end)
_last_active = it;
/* cout << "Active window is now: ";
@ -514,7 +515,9 @@ void screen::cycleWindow(const bool forward, const bool allscreens,
return;
} while ((*target)->iconic() ||
(! allscreens && (*target)->getScreen() != this) ||
(! alldesktops && (*target)->desktop() != _active_desktop) ||
(! alldesktops &&
(*target)->desktop() != _active_desktop &&
(*target)->desktop() != 0xffffffff) ||
(sameclass && ! classname.empty() &&
(*target)->appClass() != classname));