Conf: Allow border height of client to 0 (Feature #34 requested by addikt1ve)
This commit is contained in:
18
src/config.c
18
src/config.c
@@ -139,13 +139,15 @@ conf_misc_section(char *src)
|
||||
|
||||
cfg_set_sauv(src);
|
||||
|
||||
conf.font = get_opt(src, "sans-9", "font").str;
|
||||
conf.raisefocus = get_opt(src, "false", "raisefocus").bool;
|
||||
conf.raiseswitch = get_opt(src, "false", "raiseswitch").bool;
|
||||
conf.focus_fmouse = get_opt(src, "true", "focus_follow_mouse").bool;
|
||||
conf.status_timing = get_opt(src, "1", "status_timing").num;
|
||||
conf.status_path = get_opt(src, "", "status_path").str;
|
||||
pad = get_opt(src, "12", "pad").num;
|
||||
conf.font = get_opt(src, "sans-9", "font").str;
|
||||
conf.raisefocus = get_opt(src, "false", "raisefocus").bool;
|
||||
conf.raiseswitch = get_opt(src, "false", "raiseswitch").bool;
|
||||
conf.focus_fmouse = get_opt(src, "true", "focus_follow_mouse").bool;
|
||||
conf.status_timing = get_opt(src, "1", "status_timing").num;
|
||||
conf.status_path = get_opt(src, "", "status_path").str;
|
||||
conf.autostart_path = get_opt(src, "", "autostart_path").str;
|
||||
conf.autostart_command = get_opt(src, "", "autostart_command").str;
|
||||
pad = get_opt(src, "12", "pad").num;
|
||||
|
||||
if(pad > 24 || pad < 1)
|
||||
{
|
||||
@@ -211,7 +213,7 @@ conf_client_section(char *src)
|
||||
/* Client misc */
|
||||
cfg_set_sauv(src);
|
||||
|
||||
conf.client.borderheight = (get_opt(src, "1", "border_height").num) ? get_opt(src, "1", "border_height").num : 1;
|
||||
conf.client.borderheight = (get_opt(src, "1", "border_height").num);
|
||||
conf.client.border_shadow = get_opt(src, "false", "border_shadow").bool;
|
||||
conf.client.place_at_mouse = get_opt(src, "false", "place_at_mouse").bool;
|
||||
conf.client.bordernormal = getcolor(get_opt(src, "#000000", "border_normal").str);
|
||||
|
||||
@@ -328,6 +328,8 @@ typedef struct
|
||||
uint pad;
|
||||
int status_timing;
|
||||
char *status_path;
|
||||
char *autostart_path;
|
||||
char *autostart_command;
|
||||
struct
|
||||
{
|
||||
/*
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
#define SHADC (0x000000) /* 'Cause i don't know how darken a color yet */
|
||||
#define BORDH conf.client.borderheight
|
||||
#define TBARH ((conf.titlebar.height < BORDH) ? BORDH : conf.titlebar.height)
|
||||
#define RESHW (6 * BORDH)
|
||||
#define RESHW (6 * (BORDH + 1))
|
||||
#define BUTTONWH (TBARH / 2)
|
||||
#define DEF_CONF ".config/wmfs/wmfsrc"
|
||||
#define DEF_STATUS ".config/wmfs/status.sh"
|
||||
|
||||
Reference in New Issue
Block a user