mirror of
https://github.com/yshui/picom.git
synced 2025-04-14 17:53:25 -04:00
Merge pull request #1409 from absolutelynothelix/syncconst
x: use XSyncBad{Counter,Alarm,Fence} from X11/extensions/syncconst.h
This commit is contained in:
commit
b99537235b
1 changed files with 1 additions and 6 deletions
7
src/x.c
7
src/x.c
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue