From 2e438fde2c4c6f660649c69f05681d50c72f849e Mon Sep 17 00:00:00 2001
From: markt <markt>
Date: Fri, 5 Jan 2007 21:48:42 +0000
Subject: set active client when raising a transient window

---
 ChangeLog     | 3 +++
 src/Window.cc | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index cbb2882..be877c3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,9 @@
  (Format: Year/Month/Day)
 Changes for 1.0rc3:
 *07/01/05:
+   * When a client in an unfocused tab creates a transient window, set that
+     client to the active tab (Mark)
+     Window.cc
    * Window wasn't staying focused when dragging across workspaces with
      outline window moving (Mark)
      Window.cc
diff --git a/src/Window.cc b/src/Window.cc
index b3b395b..73efbab 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -1931,8 +1931,10 @@ void FluxboxWindow::raise() {
         m_client->transientFor()->transientList().push_back(m_client);
     }
     // raise this window and every transient in it with this one last
-    if (client->fbwindow())
+    if (client->fbwindow()) {
         raiseFluxboxWindow(*client->fbwindow());
+        client->fbwindow()->setCurrentClient(*client, false);
+    }
 
 }
 
-- 
cgit v0.11.2