diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-07-24 09:39:18 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-07-24 09:39:18 +0000 |
| commit | 746c37b24b57ea024cf42e3d0d0d7c0ae3b03b83 (patch) | |
| tree | 41bd41f366ca5dc2ca3d4fbf0e9522ab4629e11e /util/epist/screen.cc | |
| parent | d18f6a4b55424db875e8afb744e9b3251433a9cb (diff) | |
smarter window cycling, behave with omnipresent windows
Diffstat (limited to 'util/epist/screen.cc')
| -rw-r--r-- | util/epist/screen.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/util/epist/screen.cc b/util/epist/screen.cc index 2a4d5a70..7dfca51f 100644 --- a/util/epist/screen.cc +++ b/util/epist/screen.cc @@ -444,7 +444,8 @@ void screen::updateActiveWindow() { } } _active = it; - _last_active = it; + if (it != end) + _last_active = it; /* cout << "Active window is now: "; if (_active == _clients.end()) cout << "None\n"; @@ -514,7 +515,9 @@ void screen::cycleWindow(const bool forward, const bool allscreens, return; } while ((*target)->iconic() || (! allscreens && (*target)->getScreen() != this) || - (! alldesktops && (*target)->desktop() != _active_desktop) || + (! alldesktops && + (*target)->desktop() != _active_desktop && + (*target)->desktop() != 0xffffffff) || (sameclass && ! classname.empty() && (*target)->appClass() != classname)); |
