From 2685eeb77fd1c744d1c46e27542cf59ec5e9171e Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 1 Sep 2002 21:39:00 +0000 Subject: [PATCH] when trying to find a window on the screen to focus, dont use non-focusable windows --- util/epist/screen.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.45.2