]> Dogcows Code - chaz/openbox/commitdiff
only focus new transient windows if their parent has the input focus
authorDana Jansens <danakj@orodu.net>
Fri, 19 Jul 2002 06:56:00 +0000 (06:56 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 19 Jul 2002 06:56:00 +0000 (06:56 +0000)
src/Window.cc

index 4c7a31d76d9536751908b498a34af527875a1a84..2eaa6a67a56aa7650b50a66b9c06fe40ff5349f8 100644 (file)
@@ -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) {
This page took 0.028009 seconds and 4 git commands to generate.