make more clear

This commit is contained in:
Dana Jansens 2002-07-23 21:51:38 +00:00
parent f6a3cd61f8
commit 3792d28333

View file

@ -433,11 +433,11 @@ void screen::cycleWindow(const bool forward, const bool alldesktops,
const bool sameclass, const string &cn) const { const bool sameclass, const string &cn) const {
assert(_managed); assert(_managed);
WindowList::const_iterator target = _active; string classname(cn);
if (sameclass && classname.empty() && _active != _clients.end())
classname = (*_active)->appClass();
string classname = cn; WindowList::const_iterator target = _active;
if (sameclass && classname.empty() && target != _clients.end())
classname = (*target)->appClass();
if (target == _clients.end()) if (target == _clients.end())
target = _clients.begin(); target = _clients.begin();