[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] focus window after bring



---
 doc/herbstluftwm.txt |    4 ++--
 src/layout.c         |    1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/doc/herbstluftwm.txt b/doc/herbstluftwm.txt
index 69b1ee9..501e0d9 100644
--- a/doc/herbstluftwm.txt
+++ b/doc/herbstluftwm.txt
@@ -299,8 +299,8 @@ jumpto urgent|'0xWINID'::
     or specified by the hexadecimal '0xWINID'.
 
 bring urgent|'0xWINID'::
-    Moves specified window to the current frame. The window is an arbitrary
-    urgent window or specified by the hexadecimal '0xWINID'.
+    Moves the specified window to the current frame and focuses it. The window
+    is an arbitrary urgent window or specified by the hexadecimal '0xWINID'.
 
 resize 'DIRECTION' 'FRACTIONDELTA'::
     Changes the next fraction in specified 'DIRECTION' by 'FRACTIONDELTA'.
diff --git a/src/layout.c b/src/layout.c
index 7ba6b81..5d81ba5 100644
--- a/src/layout.c
+++ b/src/layout.c
@@ -893,6 +893,7 @@ int frame_current_bring(int argc, char** argv) {
         return HERBST_INVALID_ARGUMENT;
     }
     tag_move_client(client, get_current_monitor()->tag);
+    focus_window(client->window, false, false);
     return 0;
 }
 
-- 
1.7.8.6