[wmfs] Remove backround color support

This commit is contained in:
Martin Duquesnoy 2008-10-12 00:29:42 +02:00
parent e77173b8b0
commit 0d94df6286
4 changed files with 1 additions and 8 deletions

View File

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

3
wmfs.c
View File

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

1
wmfs.h
View File

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

3
wmfsrc
View File

@ -18,9 +18,6 @@ misc
colors
{
#Desktop
background = "#090909"
#Border
border_normal = "#3F485E"
border_focus = "#7E89A2"