From 23da937e01a72cbb7af5108b9620d58cc216d731 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 19 Jul 2002 06:56:00 +0000 Subject: [PATCH] only focus new transient windows if their parent has the input focus --- src/Window.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Window.cc b/src/Window.cc index 4c7a31d7..2eaa6a67 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -2514,7 +2514,8 @@ void BlackboxWindow::mapRequestEvent(const XMapRequestEvent *re) { if (isNormal()) { if (! blackbox->isStartup()) { XSync(blackbox->getXDisplay(), False); // make sure the frame is mapped - if (isTransient() || screen->doFocusNew()) { + if (screen->doFocusNew()|| (isTransient() && getTransientFor() && + getTransientFor()->isFocused())) { setInputFocus(); } if (screen->getPlacementPolicy() == BScreen::ClickMousePlacement) { -- 2.45.2