]> git.sur5r.net Git - i3/i3/blobdiff - i3bar/include/draw_util.h
Rename I3BAR_CAIRO to CAIRO_SUPPORT.
[i3/i3] / i3bar / include / draw_util.h
index 9bac72ca5ee57004947b8f45b41567429977d4a3..f2e12ec590e61ec5952ad0219a23243ff4376fab 100644 (file)
@@ -8,11 +8,11 @@
  */
 #pragma once
 
-#ifdef I3BAR_CAIRO
+#ifdef CAIRO_SUPPORT
 #include <cairo/cairo-xcb.h>
 #endif
 
-#ifdef I3BAR_CAIRO
+#ifdef CAIRO_SUPPORT
 /* We need to flush cairo surfaces twice to avoid an assertion bug. See #1989
  * and https://bugs.freedesktop.org/show_bug.cgi?id=92455. */
 #define CAIRO_SURFACE_FLUSH(surface)  \
@@ -44,7 +44,7 @@ typedef struct surface_t {
     int width;
     int height;
 
-#ifdef I3BAR_CAIRO
+#ifdef CAIRO_SUPPORT
     /* A cairo surface representing the drawable. */
     cairo_surface_t *surface;