summaryrefslogtreecommitdiffstats
path: root/x11vnc/cleanup.c
diff options
context:
space:
mode:
authorrunge <runge@karlrunge.com>2009-10-17 22:36:54 -0400
committerrunge <runge@karlrunge.com>2009-10-17 22:36:54 -0400
commit35c42cf3a64b633ca07f0fe47182955736b8c5e1 (patch)
treee556e94d79e678b44687e519cd18103172227fcd /x11vnc/cleanup.c
parent387e189b37a1456ee5a4df52d495a9f31d01306a (diff)
downloadlibtdevnc-35c42cf3a64b633ca07f0fe47182955736b8c5e1.tar.gz
libtdevnc-35c42cf3a64b633ca07f0fe47182955736b8c5e1.zip
Workaround for inane X_ShmAttach incompatibility in Xorg, -solid support in xfce, showrfbauth option.
Diffstat (limited to 'x11vnc/cleanup.c')
-rw-r--r--x11vnc/cleanup.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/x11vnc/cleanup.c b/x11vnc/cleanup.c
index 9081db1..7d57d90 100644
--- a/x11vnc/cleanup.c
+++ b/x11vnc/cleanup.c
@@ -276,6 +276,13 @@ int trap_getimage_xerror(Display *d, XErrorEvent *error) {
return 0;
}
+/* Are silly Xorg people removing X_ShmAttach from XShm.h? */
+/* INDEED! What stupid, myopic morons... */
+/* Maintenance Monkeys busy typing at their keyboards... */
+#ifndef X_ShmAttach
+#define X_ShmAttach 1
+#endif
+
static int Xerror(Display *d, XErrorEvent *error) {
X_UNLOCK;