From a7515b6d85b9cdb97d2365559109af74e68f6ff8 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 30 Jul 2002 07:17:07 +0000 Subject: don't focus non-visible windows --- src/blackbox.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/blackbox.cc') 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); -- cgit v1.2.3