libi3: Implement Pango rendering

This commit is contained in:
Fernando Tarlá Cardoso Lemos
2012-08-05 21:36:49 +02:00
committed by Quentin Glidic
parent f06161b58a
commit 6ff3f7abad
14 changed files with 178 additions and 16 deletions

View File

@ -4,8 +4,8 @@ CLEAN_TARGETS += clean-i3-nagbar
i3_nagbar_SOURCES := $(wildcard i3-nagbar/*.c)
i3_nagbar_HEADERS := $(wildcard i3-nagbar/*.h)
i3_nagbar_CFLAGS = $(XCB_CFLAGS)
i3_nagbar_LIBS = $(XCB_LIBS)
i3_nagbar_CFLAGS = $(XCB_CFLAGS) $(PANGO_CFLAGS)
i3_nagbar_LIBS = $(XCB_LIBS) $(PANGO_LIBS)
i3_nagbar_OBJECTS := $(i3_nagbar_SOURCES:.c=.o)

View File

@ -54,6 +54,7 @@ static uint32_t color_text; /* color of the text */
xcb_window_t root;
xcb_connection_t *conn;
xcb_screen_t *root_screen;
/*
* Starts the given application by passing it through a shell. We use double fork
@ -280,7 +281,7 @@ int main(int argc, char *argv[]) {
#include "atoms.xmacro"
#undef xmacro
xcb_screen_t *root_screen = xcb_aux_get_screen(conn, screens);
root_screen = xcb_aux_get_screen(conn, screens);
root = root_screen->root;
if (bar_type == TYPE_ERROR) {