X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=util%2Fepist%2Fscreen.cc;h=eb9edc39fd93fcbbaad9e1e508761d04c322fd9f;hb=bf418b364c6ca12651959199ae275c268ef45866;hp=d767c268136460746db411b83b4bee3e6fc14040;hpb=75b6a5a378966efc09c355109ab42467ddc6d845;p=chaz%2Fopenbox diff --git a/util/epist/screen.cc b/util/epist/screen.cc index d767c268..eb9edc39 100644 --- a/util/epist/screen.cc +++ b/util/epist/screen.cc @@ -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