diff --git a/i3bar/include/xcb.h b/i3bar/include/xcb.h index 0276d3c7..c1b7cc14 100644 --- a/i3bar/include/xcb.h +++ b/i3bar/include/xcb.h @@ -12,6 +12,10 @@ #include //#include "outputs.h" +#ifdef XCB_COMPAT +#define XCB_ATOM_CARDINAL CARDINAL +#endif + #define _NET_SYSTEM_TRAY_ORIENTATION_HORZ 0 #define _NET_SYSTEM_TRAY_ORIENTATION_VERT 1 #define SYSTEM_TRAY_REQUEST_DOCK 0 diff --git a/i3bar/include/xcb_atoms.def b/i3bar/include/xcb_atoms.def index 0c0b207e..b75ceabd 100644 --- a/i3bar/include/xcb_atoms.def +++ b/i3bar/include/xcb_atoms.def @@ -5,7 +5,6 @@ ATOM_DO(I3_SOCKET_PATH) ATOM_DO(MANAGER) ATOM_DO(_NET_SYSTEM_TRAY_ORIENTATION) ATOM_DO(_NET_SYSTEM_TRAY_VISUAL) -ATOM_DO(CARDINAL) ATOM_DO(_NET_SYSTEM_TRAY_OPCODE) ATOM_DO(_XEMBED_INFO) ATOM_DO(_XEMBED) diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index 00d25272..e25bc959 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -930,7 +930,7 @@ void init_tray() { XCB_PROP_MODE_REPLACE, selwin, atoms[_NET_SYSTEM_TRAY_ORIENTATION], - atoms[CARDINAL], + XCB_ATOM_CARDINAL, 32, 1, &orientation);