Conf: Allow border height of client to 0 (Feature #34 requested by addikt1ve)

This commit is contained in:
Martin Duquesnoy
2010-04-03 23:10:25 +02:00
parent 321669eb3a
commit b5dd942fd1
3 changed files with 13 additions and 9 deletions

View File

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

View File

@@ -328,6 +328,8 @@ typedef struct
uint pad;
int status_timing;
char *status_path;
char *autostart_path;
char *autostart_command;
struct
{
/*

View File

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