Skip to content

Commit b995372

Browse files
authored
Merge pull request #1409 from absolutelynothelix/syncconst
x: use XSyncBad{Counter,Alarm,Fence} from X11/extensions/syncconst.h
2 parents f3c16f4 + 1e56fee commit b995372

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/x.c

+1-6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include <X11/Xlib-xcb.h>
99
#include <X11/Xutil.h>
10+
#include <X11/extensions/syncconst.h>
1011
#include <pixman.h>
1112
#include <xcb/composite.h>
1213
#include <xcb/damage.h>
@@ -41,12 +42,6 @@ static inline uint64_t x_widen_sequence(struct x_connection *c, uint32_t sequenc
4142

4243
// === Error handling ===
4344

44-
enum {
45-
XSyncBadCounter = 0,
46-
XSyncBadAlarm = 1,
47-
XSyncBadFence = 2,
48-
};
49-
5045
/// Convert a X11 error to string
5146
///
5247
/// @return a pointer to a string. this pointer shouldn NOT be freed, same buffer is used

0 commit comments

Comments
 (0)