]> Dogcows Code - chaz/openbox/commitdiff
make more clear
authorDana Jansens <danakj@orodu.net>
Tue, 23 Jul 2002 21:51:38 +0000 (21:51 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 23 Jul 2002 21:51:38 +0000 (21:51 +0000)
util/epist/screen.cc

index 99de22b4c0ed7a7018bf90bc09da554064a51329..d711fcb301571a7d954855509039be4361d71fbb 100644 (file)
@@ -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();
This page took 0.022226 seconds and 4 git commands to generate.