summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-09-01 21:39:00 +0000
committerDana Jansens <danakj@orodu.net>2002-09-01 21:39:00 +0000
commit2685eeb77fd1c744d1c46e27542cf59ec5e9171e (patch)
tree66bc4001351611c6bbcb8edbf52fe40aba07168a
parent42e00b1c5b6f6f424ed9c84e81695ea5ab874a76 (diff)
when trying to find a window on the screen to focus, dont use non-focusable windows
-rw-r--r--util/epist/screen.cc4
1 files changed, 3 insertions, 1 deletions
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