We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c782dfd + e6b959c commit 2731045Copy full SHA for 2731045
src/linux/xdisplay.c
@@ -5,7 +5,7 @@
5
6
static Display *mainDisplay = NULL;
7
static int registered = 0;
8
-static char *displayName = ":0.0";
+static char *displayName = NULL;
9
static int hasDisplayNameChanged = 0;
10
11
Display *XGetMainDisplay(void)
@@ -20,11 +20,6 @@ Display *XGetMainDisplay(void)
20
/* First try the user set displayName */
21
mainDisplay = XOpenDisplay(displayName);
22
23
- /* Then try using environment variable DISPLAY */
24
- if (mainDisplay == NULL) {
25
- mainDisplay = XOpenDisplay(NULL);
26
- }
27
-
28
if (mainDisplay == NULL) {
29
fputs("Could not open main display\n", stderr);
30
} else if (!registered) {
0 commit comments