From d1e7633a222507dd6efca47aa7af6f3d44fb5d51 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 14 Mar 2008 07:27:23 +0100 Subject: [PATCH] Use tag code in case of no tag, not ours. --- config.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/config.c b/config.c index 5837083b..837f8c8b 100644 --- a/config.c +++ b/config.c @@ -427,11 +427,8 @@ config_parse_screen(cfg_t *cfg, int screen) else { warn("fatal: no tags found in configuration file\n"); - tag->name = a_strdup("default"); - tag->layout = virtscreen->layouts; - tag->nmaster = 1; - tag->ncol = 1; - tag->mwfact = 0.5; + tag = tag_new("default", virtscreen->layouts, 0.5, 1, 1); + tag_push_to_screen(tag, screen); } ewmh_update_net_numbers_of_desktop(phys_screen);