From 6bf013e2b7c5e6090ecce24727830205869a0e44 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 16 Aug 2002 05:29:31 +0000 Subject: [PATCH] dont lose the last-focused window when all windows lose focus --- util/epist/screen.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"; -- 2.39.2