1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2025-04-14 17:53:25 -04:00

Merge pull request from absolutelynothelix/syncconst

x: use XSyncBad{Counter,Alarm,Fence} from X11/extensions/syncconst.h
This commit is contained in:
Yuxuan Shui 2025-02-21 19:02:23 +00:00 committed by GitHub
commit b99537235b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,6 +7,7 @@
#include <X11/Xlib-xcb.h>
#include <X11/Xutil.h>
#include <X11/extensions/syncconst.h>
#include <pixman.h>
#include <xcb/composite.h>
#include <xcb/damage.h>
@ -41,12 +42,6 @@ static inline uint64_t x_widen_sequence(struct x_connection *c, uint32_t sequenc
// === Error handling ===
enum {
XSyncBadCounter = 0,
XSyncBadAlarm = 1,
XSyncBadFence = 2,
};
/// Convert a X11 error to string
///
/// @return a pointer to a string. this pointer shouldn NOT be freed, same buffer is used