when trying to find a window on the screen to focus, dont use non-focusable windows

This commit is contained in:
Dana Jansens 2002-09-01 21:39:00 +00:00
parent 42e00b1c5b
commit 2685eeb77f

View 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