config: Add option stipple (boolean) in titlebar section

This commit is contained in:
Martin Duquesnoy 2009-01-02 21:36:24 +01:00
parent b69cce353d
commit d174422bdb
4 changed files with 4 additions and 1 deletions

View File

@ -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");

View File

@ -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),

View File

@ -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 */

View File

@ -245,6 +245,7 @@ typedef struct
int height;
char *fg_normal;
char *fg_focus;
Bool stipple;
MouseBinding *mouse;
int nmouse;
} titlebar;