when trying to find a window on the screen to focus, dont use non-focusable windows
This commit is contained in:
parent
42e00b1c5b
commit
2685eeb77f
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue