]> Dogcows Code - chaz/openbox/commitdiff
when trying to find a window on the screen to focus, dont use non-focusable windows
authorDana Jansens <danakj@orodu.net>
Sun, 1 Sep 2002 21:39:00 +0000 (21:39 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 1 Sep 2002 21:39:00 +0000 (21:39 +0000)
util/epist/screen.cc

index 5e56fc91e750ad4dccb75ea897b30c15dd8a8952..1705202bc319ad82f36df47b4b1cb653a73da11a 100644 (file)
@@ -515,7 +515,9 @@ const XWindow *screen::lastActiveWindow() const {
   WindowList::const_iterator it, end = _clients.end();
   for (it = _clients.begin(); it != end; ++it)
     if ((*it)->getScreen() == this && ! (*it)->iconic() &&
-        ((*it)->desktop() == 0xffffffff || (*it)->desktop() == _active_desktop))
+        (*it)->canFocus() &&
+        ((*it)->desktop() == 0xffffffff ||
+         (*it)->desktop() == _active_desktop))
       return *it;
 
   // no windows on this screen
This page took 0.026568 seconds and 4 git commands to generate.