projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0adf54b
)
make lastActiveWindow more intelligent
author
Dana Jansens
<danakj@orodu.net>
Wed, 24 Jul 2002 10:02:32 +0000
(10:02 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Wed, 24 Jul 2002 10:02:32 +0000
(10:02 +0000)
util/epist/screen.cc
patch
|
blob
|
history
diff --git
a/util/epist/screen.cc
b/util/epist/screen.cc
index 7dfca51fccfe9ffe3efed99ce71004150a416df4..2c1da1ae53054e2c26c4b68ad7aa03ff47dfd8dc 100644
(file)
--- a/
util/epist/screen.cc
+++ b/
util/epist/screen.cc
@@
-421,7
+421,8
@@
const XWindow *screen::lastActiveWindow() const {
// find a window if one exists
WindowList::const_iterator it, end = _clients.end();
for (it = _clients.begin(); it != end; ++it)
- if ((*it)->getScreen() == this)
+ if ((*it)->getScreen() == this && ! (*it)->iconic() &&
+ ((*it)->desktop() == 0xffffffff || (*it)->desktop() == _active_desktop))
return *it;
// no windows on this screen