Introduce switch for the drawing backend

This commit restores the old XCB drawing code paths while keeping the
cairo drawing available via a compile-time switch (I3BAR_CAIRO). This
is necessary as cairo currently has a bug that breaks i3bar for users
without the RENDER extension, which might be the case, e.g., for VNC
users.

For more context, see #1989 and the discussions about its fix. Once the
cairo fix is available in a stable release, i3 can depend on that version
and remove the XCB drawing code paths.

fixes #1989
This commit is contained in:
Ingo Bürk
2015-10-14 20:49:52 +02:00
parent 46bcc55f6f
commit 02468296c4
6 changed files with 142 additions and 112 deletions

View File

@ -80,4 +80,4 @@ TAILQ_HEAD(statusline_head, status_block) statusline_head;
#include "config.h"
#include "libi3.h"
#include "parse_json_header.h"
#include "cairo_util.h"
#include "draw_util.h"