From 238eb7f3462604e1eb4d54d3226c6fb8f1d851d1 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 27 Dec 2007 12:52:04 +0100 Subject: [PATCH] switch to get_current_tags() in screen.c --- screen.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/screen.c b/screen.c index 0483fde6f..7fc77ae54 100644 --- a/screen.c +++ b/screen.c @@ -252,6 +252,7 @@ void uicb_screen_focus(int screen, char *arg) { int new_screen, numscreens = get_screen_count(); + Tag **curtags = get_current_tags(screen); if(arg) new_screen = compute_new_value_from_arg(arg, screen); @@ -263,9 +264,11 @@ uicb_screen_focus(int screen, char *arg) if (new_screen > (numscreens - 1)) new_screen = 0; - focus(focus_get_latest_client_for_tag(new_screen, get_current_tag(new_screen)), + focus(focus_get_latest_client_for_tag(new_screen, curtags[0]), True, new_screen); + p_delete(&curtags); + move_mouse_pointer_to_screen(new_screen); }