summaryrefslogtreecommitdiffstats
path: root/compton.h
diff options
context:
space:
mode:
authorRichard Grenville <pyxlcy@gmail.com>2012-10-22 08:16:52 +0800
committerRichard Grenville <pyxlcy@gmail.com>2012-10-22 08:16:52 +0800
commit2105bc894de7d9da641bcd551f08817e115c7db5 (patch)
treea9c1bf7195d06c211786831e5b58a786102785fb /compton.h
parent62a6c2957e958c34515cd5633c9bf38e7f1faf51 (diff)
downloadtdebase-2105bc894de7d9da641bcd551f08817e115c7db5.tar.gz
tdebase-2105bc894de7d9da641bcd551f08817e115c7db5.zip
Misc: Drop support for old versions of libXcomposite
Basically dropping support for HAS_NAME_PIXMAP = 0 because I don't think there are many people using it, and I cannot maintain it. CAN_DO_USABLE support is under evaluation.
Diffstat (limited to 'compton.h')
-rw-r--r--compton.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/compton.h b/compton.h
index 56c580993..6aac338e9 100644
--- a/compton.h
+++ b/compton.h
@@ -91,8 +91,8 @@
#endif
// === Constants ===
-#if COMPOSITE_MAJOR > 0 || COMPOSITE_MINOR >= 2
-#define HAS_NAME_WINDOW_PIXMAP 1
+#if !(COMPOSITE_MAJOR > 0 || COMPOSITE_MINOR >= 2)
+#error libXcomposite version unsupported
#endif
#define ROUNDED_PERCENT 0.05
@@ -183,9 +183,7 @@ typedef struct _win {
struct _win *next;
Window id;
Window client_win;
-#if HAS_NAME_WINDOW_PIXMAP
Pixmap pixmap;
-#endif
XWindowAttributes a;
#if CAN_DO_USABLE
Bool usable; /* mapped and all damaged at one point */
@@ -871,10 +869,8 @@ finish_map_win(Display *dpy, win *w);
static void
finish_unmap_win(Display *dpy, win *w);
-#if HAS_NAME_WINDOW_PIXMAP
static void
unmap_callback(Display *dpy, win *w);
-#endif
static void
unmap_win(Display *dpy, Window id, Bool fade);
@@ -931,10 +927,8 @@ circulate_win(Display *dpy, XCirculateEvent *ce);
static void
finish_destroy_win(Display *dpy, Window id);
-#if HAS_NAME_WINDOW_PIXMAP
static void
destroy_callback(Display *dpy, win *w);
-#endif
static void
destroy_win(Display *dpy, Window id, Bool fade);