From 0d94df62864457a78a48749b196c74135175c844 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Sun, 12 Oct 2008 00:29:42 +0200 Subject: [PATCH] [wmfs] Remove backround color support --- config.c | 2 -- wmfs.c | 3 +-- wmfs.h | 1 - wmfsrc | 3 --- 4 files changed, 1 insertion(+), 8 deletions(-) diff --git a/config.c b/config.c index 427678f..ed9716a 100644 --- a/config.c +++ b/config.c @@ -167,7 +167,6 @@ init_conf(void) static cfg_opt_t colors_opts[] = { - CFG_STR("background", "#090909", CFGF_NONE), CFG_STR("border_normal", "#354B5C", CFGF_NONE), CFG_STR("border_focus", "#6286A1", CFGF_NONE), CFG_STR("bar_bg", "#090909", CFGF_NONE), @@ -336,7 +335,6 @@ init_conf(void) conf.bartop = (strcmp(strdup(cfg_getstr(cfg_misc, "bar_position")), "top") == 0) ? True : False; /* colors */ - conf.colors.background = getcolor(var_to_str(cfg_getstr(cfg_colors, "background"))); conf.colors.bordernormal = getcolor(var_to_str(cfg_getstr(cfg_colors, "border_normal"))); conf.colors.borderfocus = getcolor(var_to_str(cfg_getstr(cfg_colors, "border_focus"))); conf.colors.bar = getcolor(var_to_str(cfg_getstr(cfg_colors, "bar_bg"))); diff --git a/wmfs.c b/wmfs.c index 5d642c2..266a8c8 100644 --- a/wmfs.c +++ b/wmfs.c @@ -390,7 +390,6 @@ init(void) EnterWindowMask | LeaveWindowMask | StructureNotifyMask ; at.cursor = cursor[CurNormal]; XChangeWindowAttributes(dpy, root, CWEventMask | CWCursor, &at); - XSetWindowBackground(dpy, root, conf.colors.background); /* INIT BAR / BUTTON */ bary = (conf.bartop) ? 0 : mh - barheight; @@ -1032,6 +1031,6 @@ main(int argc, char **argv) XCloseDisplay(dpy); - exit(EXIT_SUCCESS); + return 0; } diff --git a/wmfs.h b/wmfs.h index 836441b..03f7de0 100644 --- a/wmfs.h +++ b/wmfs.h @@ -158,7 +158,6 @@ typedef struct { /* Only the colors will be use for text * are 'char*' (for xprint -> XftColorAllocName) */ - uint background; uint bordernormal; uint borderfocus; uint bar; diff --git a/wmfsrc b/wmfsrc index 47b4317..ac35a68 100644 --- a/wmfsrc +++ b/wmfsrc @@ -18,9 +18,6 @@ misc colors { - #Desktop - background = "#090909" - #Border border_normal = "#3F485E" border_focus = "#7E89A2"