From 517c47ca95495eb332e628d9e6017189396e854d Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 31 May 2009 17:18:49 +0200 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20check=20twice=20for=20client.fo?= =?UTF-8?q?cused,=20change=20all=20places=20were=20colorcodes=20are=20used?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.c | 1 - src/handlers.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/config.c b/src/config.c index ec3be4ed..8e8a80bd 100644 --- a/src/config.c +++ b/src/config.c @@ -125,7 +125,6 @@ void load_configuration(const char *override_configpath) { OPTION_COLORTRIPLE("client.focused", client.focused); OPTION_COLORTRIPLE("client.focused_inactive", client.focused_inactive); OPTION_COLORTRIPLE("client.unfocused", client.unfocused); - OPTION_COLORTRIPLE("client.focused", client.focused); OPTION_COLORTRIPLE("bar.focused", bar.focused); OPTION_COLORTRIPLE("bar.unfocused", bar.unfocused); diff --git a/src/handlers.c b/src/handlers.c index 0d828d20..cf15d1e4 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -793,9 +793,9 @@ int handle_expose_event(void *data, xcb_connection_t *conn, xcb_expose_event_t * uint32_t background_color; /* Distinguish if the window is currently focused… */ if (CUR_CELL->currently_focused == client) - background_color = get_colorpixel(conn, "#285577"); + background_color = get_colorpixel(conn, config.client.focused.background); /* …or if it is the focused window in a not focused container */ - else background_color = get_colorpixel(conn, "#555555"); + else background_color = get_colorpixel(conn, config.client.focused_inactive.background); /* Set foreground color to current focused color, line width to 2 */ uint32_t values[] = {background_color, 2};