tag: reset screen later

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-04-17 17:21:59 +02:00
parent f473a107b0
commit 5e0c84b9fb
1 changed files with 2 additions and 1 deletions

3
tag.c
View File

@ -101,7 +101,6 @@ tag_remove_from_screen(tag_t *tag)
ewmh_update_net_numbers_of_desktop(phys_screen); ewmh_update_net_numbers_of_desktop(phys_screen);
ewmh_update_net_desktop_names(phys_screen); ewmh_update_net_desktop_names(phys_screen);
ewmh_update_workarea(phys_screen); ewmh_update_workarea(phys_screen);
tag->screen = NULL;
/* call hook */ /* call hook */
if(globalconf.hooks.tags != LUA_REFNIL) if(globalconf.hooks.tags != LUA_REFNIL)
@ -112,6 +111,8 @@ tag_remove_from_screen(tag_t *tag)
luaA_dofunction(globalconf.L, globalconf.hooks.tags, 3, 0); luaA_dofunction(globalconf.L, globalconf.hooks.tags, 3, 0);
} }
tag->screen = NULL;
tag_unref(globalconf.L, tag); tag_unref(globalconf.L, tag);
} }