From 5e0c84b9fbb3a0da0098e7d12a4343aaacced6fc Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 17 Apr 2009 17:21:59 +0200 Subject: [PATCH] tag: reset screen later Signed-off-by: Julien Danjou --- tag.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tag.c b/tag.c index b882d8a0..58ecf3cc 100644 --- a/tag.c +++ b/tag.c @@ -101,7 +101,6 @@ tag_remove_from_screen(tag_t *tag) ewmh_update_net_numbers_of_desktop(phys_screen); ewmh_update_net_desktop_names(phys_screen); ewmh_update_workarea(phys_screen); - tag->screen = NULL; /* call hook */ 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); } + tag->screen = NULL; + tag_unref(globalconf.L, tag); }