]> Dogcows Code - chaz/openbox/blobdiff - util/epist/screen.cc
make more clear
[chaz/openbox] / 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.02041 seconds and 4 git commands to generate.