From: Dana Jansens Date: Sun, 1 Sep 2002 21:39:00 +0000 (+0000) Subject: when trying to find a window on the screen to focus, dont use non-focusable windows X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=2685eeb77fd1c744d1c46e27542cf59ec5e9171e;p=chaz%2Fopenbox when trying to find a window on the screen to focus, dont use non-focusable windows --- diff --git a/util/epist/screen.cc b/util/epist/screen.cc index 5e56fc91..1705202b 100644 --- a/util/epist/screen.cc +++ b/util/epist/screen.cc @@ -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