]> code.delx.au - spectrwm/commitdiff
Include the top level header of each xcb module used
authorAndrea Bolognani <eof@kiyuko.org>
Mon, 11 Jul 2016 22:18:50 +0000 (00:18 +0200)
committerReginald Kennedy <rk@rejii.com>
Fri, 26 Aug 2016 05:06:25 +0000 (13:06 +0800)
One xcb module, one header file: <xcb/xcb.h> should to be
included directly, instead of relying on other modules dragging
it in; on the other hand, it's okay to include just the top
level <xcb/xcb_util.h> instead of the three separate sub-headers.

[rk@rejii.com: skip xcb_util.h since it breaks xcb-util < 0.3.8]
closes #142

spectrwm.c

index 3aeb294cb73599e875a77f63268b41a77037476e..285bac959e8cdee7b8b29241543dc0e0ab14d1dc 100644 (file)
@@ -69,6 +69,7 @@
 #include <X11/Xcursor/Xcursor.h>
 #include <X11/Xft/Xft.h>
 #include <X11/Xlib-xcb.h>
+#include <xcb/xcb.h>
 #include <xcb/xcb_atom.h>
 #include <xcb/xcb_aux.h>
 #include <xcb/xcb_event.h>