Fix compilation with xcb 0.3.6

This commit is contained in:
Michael Stapelberg 2011-08-17 01:32:29 +02:00
parent 1c2c22d117
commit 06ba1c0e65
3 changed files with 5 additions and 2 deletions

View File

@ -12,6 +12,10 @@
#include <stdint.h> #include <stdint.h>
//#include "outputs.h" //#include "outputs.h"
#ifdef XCB_COMPAT
#define XCB_ATOM_CARDINAL CARDINAL
#endif
#define _NET_SYSTEM_TRAY_ORIENTATION_HORZ 0 #define _NET_SYSTEM_TRAY_ORIENTATION_HORZ 0
#define _NET_SYSTEM_TRAY_ORIENTATION_VERT 1 #define _NET_SYSTEM_TRAY_ORIENTATION_VERT 1
#define SYSTEM_TRAY_REQUEST_DOCK 0 #define SYSTEM_TRAY_REQUEST_DOCK 0

View File

@ -5,7 +5,6 @@ ATOM_DO(I3_SOCKET_PATH)
ATOM_DO(MANAGER) ATOM_DO(MANAGER)
ATOM_DO(_NET_SYSTEM_TRAY_ORIENTATION) ATOM_DO(_NET_SYSTEM_TRAY_ORIENTATION)
ATOM_DO(_NET_SYSTEM_TRAY_VISUAL) ATOM_DO(_NET_SYSTEM_TRAY_VISUAL)
ATOM_DO(CARDINAL)
ATOM_DO(_NET_SYSTEM_TRAY_OPCODE) ATOM_DO(_NET_SYSTEM_TRAY_OPCODE)
ATOM_DO(_XEMBED_INFO) ATOM_DO(_XEMBED_INFO)
ATOM_DO(_XEMBED) ATOM_DO(_XEMBED)

View File

@ -930,7 +930,7 @@ void init_tray() {
XCB_PROP_MODE_REPLACE, XCB_PROP_MODE_REPLACE,
selwin, selwin,
atoms[_NET_SYSTEM_TRAY_ORIENTATION], atoms[_NET_SYSTEM_TRAY_ORIENTATION],
atoms[CARDINAL], XCB_ATOM_CARDINAL,
32, 32,
1, 1,
&orientation); &orientation);