From 8500188d6a2fe67e40ac3557da8575d9ceb9a579 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 15 Dec 2007 10:19:33 +0100 Subject: [PATCH] uicb_screen_focus honors focus history --- screen.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/screen.c b/screen.c index f69f627c4..7bff4fac5 100644 --- a/screen.c +++ b/screen.c @@ -23,6 +23,7 @@ #include "screen.h" #include "tag.h" #include "layout.h" +#include "focus.h" #include "statusbar.h" /** Get screens info @@ -261,7 +262,10 @@ uicb_screen_focus(awesome_config *awesomeconf, int screen, const char *arg) if (new_screen > (numscreens - 1)) new_screen = 0; - focus(awesomeconf->focus->client, True, awesomeconf, new_screen); + focus(focus_get_latest_client_for_tag(awesomeconf->focus, + awesomeconf->screens[new_screen].tclink, + get_current_tag(awesomeconf->screens[new_screen])), + True, awesomeconf, new_screen); move_mouse_pointer_to_screen(awesomeconf->display, new_screen); }