diff options
author | Alex Auvolat <alex@adnab.me> | 2015-12-28 12:43:53 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2015-12-29 14:26:21 +0100 |
commit | c6a4e4519fb000fe835486bcb02f3253e4316a3b (patch) | |
tree | 5e5124c7f59e10e326d20410a20361cb6092696d /i3-input | |
parent | 0ee9e65a3b933b563902e1e85b5f25cbff82fc81 (diff) | |
download | i3-c6a4e4519fb000fe835486bcb02f3253e4316a3b.tar.gz i3-c6a4e4519fb000fe835486bcb02f3253e4316a3b.zip |
Correct color management for pango fonts
Corrects the cases where the colorpixel is not 0xRRGGBB : we have to
use the full color_t struct to describe font colors, as Pango expects
RGB values and not an XCB colorpixel value.
Diffstat (limited to 'i3-input')
-rw-r--r-- | i3-input/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i3-input/main.c b/i3-input/main.c index 4e1be78b..e196891c 100644 --- a/i3-input/main.c +++ b/i3-input/main.c @@ -137,7 +137,7 @@ static int handle_expose(void *data, xcb_connection_t *conn, xcb_expose_event_t xcb_poly_fill_rectangle(conn, pixmap, pixmap_gc, 1, &inner); /* restore font color */ - set_font_colors(pixmap_gc, get_colorpixel("#FFFFFF"), get_colorpixel("#000000")); + set_font_colors(pixmap_gc, draw_util_hex_to_color("#FFFFFF"), draw_util_hex_to_color("#000000")); /* draw the prompt … */ if (prompt != NULL) { |