switch to get_current_tags() in screen.c

This commit is contained in:
Julien Danjou 2007-12-27 12:52:04 +01:00
parent 7196ee7102
commit 238eb7f346

View file

@ -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);
}