]> Dogcows Code - chaz/openbox/commitdiff
dont lose the last-focused window when all windows lose focus
authorDana Jansens <danakj@orodu.net>
Fri, 16 Aug 2002 05:29:31 +0000 (05:29 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 16 Aug 2002 05:29:31 +0000 (05:29 +0000)
util/epist/screen.cc

index e7ebd64cf1d1afb06abd79d40c69b74b6c49a88e..8163107391de84ea015d1bbf3597096054342b20 100644 (file)
@@ -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";
This page took 0.025994 seconds and 4 git commands to generate.