From bed28f5e3a5e441ecc7b2e7d4f9740c05e337de6 Mon Sep 17 00:00:00 2001
From: Olivier Fourdan <fourdan.olivier@wanadoo.fr>
Date: Mon, 16 Aug 2004 20:31:46 +0000
Subject: [PATCH] Rework (read simplify) focus passing, Update focus when
 lowering a window (as per user request)

(Old svn revision: 11906)
---
 src/focus.c    | 4 ----
 src/stacking.c | 1 +
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/focus.c b/src/focus.c
index 0eb7bc09b..56818a5f2 100644
--- a/src/focus.c
+++ b/src/focus.c
@@ -288,10 +288,6 @@ clientPassFocus (ScreenInfo *screen_info, Client * c)
                     clientRaise (c2);
                 }
             }
-            else
-            {
-                new_focus = clientGetNext (c, 0);
-            }
         }
     }
     else if (XQueryPointer (myScreenGetXDisplay (screen_info), screen_info->xroot, &dr, &window, &rx, &ry, &wx, &wy, &mask))
diff --git a/src/stacking.c b/src/stacking.c
index 8636eaf61..d3bb2086e 100644
--- a/src/stacking.c
+++ b/src/stacking.c
@@ -434,6 +434,7 @@ clientLower (Client * c)
          */
         clientApplyStackList (screen_info);
         clientSetNetClientList (screen_info, net_client_list_stacking, screen_info->windows_stack);
+	clientPassFocus (screen_info, c);
         if (screen_info->last_raise == c)
         {
             screen_info->last_raise = NULL;
-- 
GitLab