Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands/helpers/find-free-display.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/helpers/find-free-display.c')
-rw-r--r--commands/helpers/find-free-display.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/commands/helpers/find-free-display.c b/commands/helpers/find-free-display.c
deleted file mode 100644
index 4a07131..0000000
--- a/commands/helpers/find-free-display.c
+++ /dev/null
@@ -1,25 +0,0 @@
-#include <stdio.h>
-#include <X11/extensions/Xrandr.h>
-
-int main(int argc, char **argv)
-{
- int port;
-
- for (port = 99; port < 1000; port++) {
- char display_name[255];
-
- sprintf(display_name, ":%d", port);
- Display *dpy = XOpenDisplay(display_name);
-
- if (!dpy) {
- printf(display_name);
- return 0;
- } else {
- XCloseDisplay(dpy);
- }
- }
-
- printf("No free display found");
-
- return 0;
-}