From 4c72b13a880c9c87ddd195a01d5e884436336451 Mon Sep 17 00:00:00 2001
From: markt <markt>
Date: Sun, 4 Nov 2007 22:42:01 +0000
Subject: update autoraise delay for open windows on reconfigure

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

diff --git a/ChangeLog b/ChangeLog
index 8cce2dd..c081b80 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
  (Format: Year/Month/Day)
 Changes for 1.0.1:
+*07/11/04:
+   * Update autoraise delay on reconfigure (Mark)
+     Window.cc
 *07/10/31:
    * Move fullscreen windows to normal layer when they lose focus (Mark)
      Window.cc FocusControl.cc
diff --git a/src/FocusControl.cc b/src/FocusControl.cc
index b977d59..0893d68 100644
--- a/src/FocusControl.cc
+++ b/src/FocusControl.cc
@@ -189,7 +189,11 @@ void FocusControl::goToWindowNumber(const Focusables &winlist, int num,
             }
         }
     }
-    if (last_matched) last_matched->focus();
+    if (last_matched) {
+        last_matched->focus();
+        if (last_matched->fbwindow())
+            last_matched->fbwindow()->raise();
+    }
 }
 
 void FocusControl::addFocusBack(WinClient &client) {
diff --git a/src/Window.cc b/src/Window.cc
index 9184a80..8e46900 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -1059,6 +1059,7 @@ void FluxboxWindow::reconfigure() {
     grabButtons();
 
     frame().setDoubleClickTime(Fluxbox::instance()->getDoubleClickInterval());
+    m_timer.setTimeout(Fluxbox::instance()->getAutoRaiseDelay());
 
     updateButtons();
     frame().reconfigure();
-- 
cgit v0.11.2