diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-07-23 21:51:38 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-07-23 21:51:38 +0000 |
| commit | 3792d283331087b1ae92419f847efaa7f879e440 (patch) | |
| tree | a728157acd367e6ae7611a8b7b5f10403d01079c /util | |
| parent | f6a3cd61f814c9a5190acb4af3b339dd4cd08647 (diff) | |
make more clear
Diffstat (limited to 'util')
| -rw-r--r-- | util/epist/screen.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/epist/screen.cc b/util/epist/screen.cc index 99de22b4..d711fcb3 100644 --- a/util/epist/screen.cc +++ b/util/epist/screen.cc @@ -433,11 +433,11 @@ void screen::cycleWindow(const bool forward, const bool alldesktops, const bool sameclass, const string &cn) const { assert(_managed); - WindowList::const_iterator target = _active; + string classname(cn); + if (sameclass && classname.empty() && _active != _clients.end()) + classname = (*_active)->appClass(); - string classname = cn; - if (sameclass && classname.empty() && target != _clients.end()) - classname = (*target)->appClass(); + WindowList::const_iterator target = _active; if (target == _clients.end()) target = _clients.begin(); |
