summaryrefslogtreecommitdiffstats
path: root/move/xwait.c
diff options
context:
space:
mode:
Diffstat (limited to 'move/xwait.c')
-rw-r--r--move/xwait.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/move/xwait.c b/move/xwait.c
deleted file mode 100644
index 07a693514..000000000
--- a/move/xwait.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include <stdlib.h>
-#include <X11/Xlib.h>
-
-int main(int argc, char **argv) {
- int permanent = argc > 1 && !strcmp(argv[1], "-permanent");
- Display *display = XOpenDisplay(NULL);
-
- if (display) {
- XEvent event;
-
- XSelectInput(display, DefaultRootWindow(display), SubstructureNotifyMask);
- do {
- XNextEvent(display, &event);
- } while (event.type != CreateNotify || permanent);
- XCloseDisplay(display);
- }
-
- exit(display == NULL);
-}