From 48482f37122f809ea846b1769db47d0c39d55e5e Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 9 May 2008 22:45:32 +0200 Subject: [PATCH] [tag] Add missing elements in tag_push_to_screen() --- tag.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tag.c b/tag.c index 9004260a6..675f668b6 100644 --- a/tag.c +++ b/tag.c @@ -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); }