From: Dana Jansens Date: Fri, 16 Aug 2002 05:29:31 +0000 (+0000) Subject: dont lose the last-focused window when all windows lose focus X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=6bf013e2b7c5e6090ecce24727830205869a0e44;p=chaz%2Fopenbox dont lose the last-focused window when all windows lose focus --- diff --git a/util/epist/screen.cc b/util/epist/screen.cc index e7ebd64c..81631073 100644 --- a/util/epist/screen.cc +++ b/util/epist/screen.cc @@ -444,7 +444,8 @@ void screen::updateActiveWindow() { } } _active = it; - _last_active = it; + if (it != end) + _last_active = it; /* cout << "Active window is now: "; if (_active == _clients.end()) cout << "None\n";