summaryrefslogtreecommitdiff
path: root/src/screen.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen.h')
-rw-r--r--src/screen.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/screen.h b/src/screen.h
index e9281f2..21336b3 100644
--- a/src/screen.h
+++ b/src/screen.h
@@ -16,16 +16,12 @@
#include <X11/Xfuncproto.h>
#include "startup.h"
-#ifndef XA_CLIPBOARD
-# define XA_CLIPBOARD(d) XA_PRIMARY
-#endif
-
/************ Macros and Definitions ************/
#define WRAP_CHAR (0xff)
#define PROP_SIZE 4096
#define TABSIZE 8 /* default tab size */
-#define IS_SELECTION(a) (((a) == XA_PRIMARY) || ((a) == XA_SECONDARY) || ((a) == XA_CLIPBOARD(Xdisplay)))
+#define IS_SELECTION(a) (((a) == XA_PRIMARY) || ((a) == XA_SECONDARY) || ((a) == props[PROP_CLIPBOARD]))
#define IS_CUT_BUFFER(a) (((a) >= XA_CUT_BUFFER0) && ((a) <= XA_CUT_BUFFER7))
#define ZERO_SCROLLBACK do { \