From dc6758d847e42860694efbd08e2a5eaf87282ac0 Mon Sep 17 00:00:00 2001 From: Jan Holthuis Date: Thu, 20 Aug 2015 17:15:06 +0200 Subject: [PATCH] x11: Use the default x11 display (not always 0) --- core/linux-dist/x11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/linux-dist/x11.cpp b/core/linux-dist/x11.cpp index 4e77129e2..df0c5818d 100644 --- a/core/linux-dist/x11.cpp +++ b/core/linux-dist/x11.cpp @@ -159,7 +159,7 @@ void x11_window_create() int i32Depth; // Initializes the display and screen - x11Display = XOpenDisplay(0); + x11Display = XOpenDisplay(NULL); if (!x11Display && !(x11Display = XOpenDisplay(":0"))) { printf("Error: Unable to open X display\n");