From 9235775dd24809074b68c3c2475b337c85abd104 Mon Sep 17 00:00:00 2001 From: Brian Mock Date: Tue, 22 Feb 2011 19:37:06 -0800 Subject: [PATCH] Final touches, including wmfsrc default options --- src/config.c | 4 ++-- src/structs.h | 8 ++++---- wmfsrc | 6 ++++++ 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/config.c b/src/config.c index d45e5a0..2d7c74d 100644 --- a/src/config.c +++ b/src/config.c @@ -304,8 +304,8 @@ conf_client_section(void) conf.client.default_open_screen = fetch_opt_first(sec, "-1", "default_open_screen").num; conf.client.new_client_get_mouse = fetch_opt_first(sec, "false", "new_client_get_mouse").bool; - conf.colors.client_light_shade = fetch_opt_first(bar, "0.25", "light_shade").fnum; - conf.colors.client_dark_shade = fetch_opt_first(bar, "-0.25", "dark_shade").fnum; + conf.colors.client_light_shade = fetch_opt_first(sec, "0.25", "light_shade").fnum; + conf.colors.client_dark_shade = fetch_opt_first(sec, "-0.25", "dark_shade").fnum; mouse = fetch_section(sec, "mouse"); diff --git a/src/structs.h b/src/structs.h index 272795d..cf540f2 100644 --- a/src/structs.h +++ b/src/structs.h @@ -216,10 +216,6 @@ struct Client uint frame; char *fg; uint resizecorner; - float client_light_shade; - float client_dark_shade; - float bar_light_shade; - float bar_dark_shade; } colors; /* Client Information by flags */ uint flags; @@ -414,6 +410,10 @@ typedef struct uint tagbord; char *layout_fg; uint layout_bg; + float client_light_shade; + float client_dark_shade; + float bar_light_shade; + float bar_dark_shade; } colors; struct { diff --git a/wmfsrc b/wmfsrc index 0f7d3c2..9b76d00 100644 --- a/wmfsrc +++ b/wmfsrc @@ -26,6 +26,9 @@ border = true #height = "-1" + light_shade = 0.10 + dark_shade = -0.10 + [systray] # Enable/disable systray active = true @@ -189,6 +192,9 @@ # Modifier for mouse use modifier = "Alt" + light_shade = 0.10 + dark_shade = -0.10 + # *DEPRECATED* but works, see [rules] section # Set automatic free or max client # autofree = "xterm|MPlayer"