diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-07-30 07:17:07 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-07-30 07:17:07 +0000 |
| commit | a7515b6d85b9cdb97d2365559109af74e68f6ff8 (patch) | |
| tree | ff05c4a2f8dcf0bf1c9573da011537819c57a08a /src/blackbox.cc | |
| parent | 961d7eb5b388e284c697b4ab0fc96ce52f90ff0a (diff) | |
don't focus non-visible windows
Diffstat (limited to 'src/blackbox.cc')
| -rw-r--r-- | src/blackbox.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/blackbox.cc b/src/blackbox.cc index 66a62e55..a818f128 100644 --- a/src/blackbox.cc +++ b/src/blackbox.cc @@ -328,7 +328,8 @@ void Blackbox::process_event(XEvent *e) { focus = True; } - if (focus && (win->isTransient() || win->getScreen()->doFocusNew())) + if (focus && (win->isTransient() || win->getScreen()->doFocusNew()) && + win->isVisible()) win->setInputFocus(); } else { BScreen *screen = searchScreen(e->xmaprequest.parent); |
