diff --git a/src/config.c b/src/config.c index 5f41587..aaf6d4d 100644 --- a/src/config.c +++ b/src/config.c @@ -125,6 +125,7 @@ conf_client_section(cfg_t *cfg_c) /* Titlebar part */ cfgtmp = cfg_getsec(cfg_c, "titlebar"); conf.titlebar.height = cfg_getint(cfgtmp, "height"); + conf.titlebar.stipple = cfg_getbool(cfgtmp, "stipple"); conf.titlebar.fg_normal = alias_to_str(cfg_getstr(cfgtmp, "fg_normal")); conf.titlebar.fg_focus = alias_to_str(cfg_getstr(cfgtmp, "fg_focus")); conf.titlebar.nmouse = cfg_size(cfgtmp, "mouse"); diff --git a/src/config_struct.h b/src/config_struct.h index 4d6538c..8b51acf 100644 --- a/src/config_struct.h +++ b/src/config_struct.h @@ -73,6 +73,7 @@ cfg_opt_t root_opts[] = cfg_opt_t titlebar_opts[] = { CFG_INT("height", 0, CFGF_NONE), + CFG_BOOL("stipple", cfg_false, CFGF_NONE), CFG_STR("fg_normal", "#FFFFFF", CFGF_NONE), CFG_STR("fg_focus", "#FFFFFF", CFGF_NONE), CFG_SEC("mouse", mouse_button_opts, CFGF_MULTI), diff --git a/src/frame.c b/src/frame.c index 277d836..22441c1 100644 --- a/src/frame.c +++ b/src/frame.c @@ -75,7 +75,7 @@ frame_create(Client *c) TBARH + BORDH, c->colors.frame, c->colors.fg, - True, True); + True, conf.titlebar.stipple); at.event_mask &= ~(EnterWindowMask | LeaveWindowMask); /* <- Delete useless mask */ diff --git a/src/structs.h b/src/structs.h index b822f5e..3f1b314 100644 --- a/src/structs.h +++ b/src/structs.h @@ -245,6 +245,7 @@ typedef struct int height; char *fg_normal; char *fg_focus; + Bool stipple; MouseBinding *mouse; int nmouse; } titlebar;