about summary refs log tree commit diff
path: root/clipnotify.c
diff options
context:
space:
mode:
Diffstat (limited to 'clipnotify.c')
-rw-r--r--clipnotify.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/clipnotify.c b/clipnotify.c
deleted file mode 100644
index f09583e..0000000
--- a/clipnotify.c
+++ /dev/null
@@ -1,28 +0,0 @@
-#include <X11/Xatom.h>
-#include <X11/Xlib.h>
-#include <X11/extensions/Xfixes.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-int main(void) {
-    Display *disp;
-    Window root;
-    Atom clip;
-    XEvent evt;
-
-    disp = XOpenDisplay(NULL);
-    if (!disp) {
-        fprintf(stderr, "Can't open X display\n");
-        exit(1);
-    }
-
-    root = DefaultRootWindow(disp);
-
-    clip = XInternAtom(disp, "CLIPBOARD", False);
-
-    XFixesSelectSelectionInput(disp, root, XA_PRIMARY, XFixesSetSelectionOwnerNotifyMask);
-    XFixesSelectSelectionInput(disp, root, clip, XFixesSetSelectionOwnerNotifyMask);
-
-    XNextEvent(disp, &evt);
-    XCloseDisplay(disp);
-}