diff options
author | Ingo Bürk <ingo.buerk@tngtech.com> | 2015-10-05 12:58:05 +0200 |
---|---|---|
committer | Ingo Bürk <ingo.buerk@tngtech.com> | 2015-10-06 23:01:57 +0200 |
commit | 1c4100ce5d8f9a7edc46f80f8a20ca50c6d97f8b (patch) | |
tree | ccae97a06f3d95f169a91b60cce6a74a678ab7fc /i3-input | |
parent | ddd5e9a824e27eb9eeec0dcf657aa984c387ad05 (diff) | |
download | i3-1c4100ce5d8f9a7edc46f80f8a20ca50c6d97f8b.tar.gz i3-1c4100ce5d8f9a7edc46f80f8a20ca50c6d97f8b.zip |
Use 32-bit visuals for i3bar when possible and allow RGBA colors.
This patch creates all necessary windows for i3bar with 32-bit visuals if available.
It also introduces the possibility to define RGBA colors (next to RGB colors), which
allows the user to set the opacity of any color. This requires running a compositor.
With this patch we also start supporting _NET_SYSTEM_TRAY_VISUAL, which is necessary
for the tray icons so they create the tray window with the correct depth and visual.
Diffstat (limited to 'i3-input')
-rw-r--r-- | i3-input/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/i3-input/main.c b/i3-input/main.c index cf3884e9..4e1be78b 100644 --- a/i3-input/main.c +++ b/i3-input/main.c @@ -141,12 +141,12 @@ static int handle_expose(void *data, xcb_connection_t *conn, xcb_expose_event_t /* draw the prompt … */ if (prompt != NULL) { - draw_text(prompt, pixmap, pixmap_gc, logical_px(4), logical_px(4), logical_px(492)); + draw_text(prompt, pixmap, pixmap_gc, NULL, logical_px(4), logical_px(4), logical_px(492)); } /* … and the text */ if (input_position > 0) { i3String *input = i3string_from_ucs2(glyphs_ucs, input_position); - draw_text(input, pixmap, pixmap_gc, prompt_offset + logical_px(4), logical_px(4), logical_px(492)); + draw_text(input, pixmap, pixmap_gc, NULL, prompt_offset + logical_px(4), logical_px(4), logical_px(492)); i3string_free(input); } |