]> Dogcows Code - chaz/openbox/blobdiff - util/epist/screen.cc
s/black/open
[chaz/openbox] / util / epist / screen.cc
index d767c268136460746db411b83b4bee3e6fc14040..eb9edc39fd93fcbbaad9e1e508761d04c322fd9f 100644 (file)
@@ -444,8 +444,7 @@ void screen::updateActiveWindow() {
     }
   }
   _active = it;
-  if (it != end)
-    _last_active = it;
+  _last_active = it;
 
   /*  cout << "Active window is now: ";
       if (_active == _clients.end()) cout << "None\n";
@@ -499,8 +498,7 @@ void screen::cycleWindow(const bool forward, const int increment,
       } else {
         if (target == begin)
           target = end;
-        for (int x = 0; x < increment; ++x)
-          --target;
+        --target;
       }
 
       // must be no window to focus
This page took 0.022248 seconds and 4 git commands to generate.