summaryrefslogtreecommitdiff
path: root/EyesP.h
diff options
context:
space:
mode:
Diffstat (limited to 'EyesP.h')
-rw-r--r--EyesP.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/EyesP.h b/EyesP.h
index 159d7f3..29fe8a3 100644
--- a/EyesP.h
+++ b/EyesP.h
@@ -8,6 +8,13 @@
#include <X11/extensions/Xrender.h>
#endif
#include "transform.h"
+#ifdef PRESENT
+#include <X11/Xlib-xcb.h>
+#include <xcb/xcb.h>
+#include <xcb/present.h>
+#include <xcb/xfixes.h>
+#include <xcb/damage.h>
+#endif
#define SEG_BUFF_SIZE 128
@@ -31,9 +38,17 @@ typedef struct {
Picture picture;
Picture fill[PART_SHAPE];
#endif
+#ifdef PRESENT
+ Pixmap back_buffer;
+ xcb_damage_damage_t back_damage;
+ xcb_xfixes_region_t back_region;
+ Boolean present;
+#endif
Boolean distance;
} EyesPart;
+#define xt_xcb(w) (XGetXCBConnection(XtDisplay(w)))
+
/* Full instance record declaration */
typedef struct _EyesRec {
CorePart core;