[tag] Add missing elements in tag_push_to_screen()

This commit is contained in:
Julien Danjou 2008-05-09 22:45:32 +02:00
parent 37087f61e0
commit 48482f3712
1 changed files with 4 additions and 0 deletions

4
tag.c
View File

@ -84,8 +84,12 @@ tag_append_to_screen(tag_t *tag, int screen)
void
tag_push_to_screen(tag_t *tag, int screen)
{
int phys_screen = screen_virttophys(screen);
tag->screen = screen;
tag_list_push(&globalconf.screens[screen].tags, tag);
ewmh_update_net_numbers_of_desktop(phys_screen);
ewmh_update_net_desktop_names(phys_screen);
widget_invalidate_cache(screen, WIDGET_CACHE_TAGS);
}