From 2628ff6224946bb7f3cf460f0c9c6969783e255c Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 15 Nov 2012 15:38:02 +0100 Subject: options: remove --display Was used to set the X11 display. XDisplayName(NULL) does the same, using the DISPLAY environment variable instead. --- video/out/x11_common.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'video/out/x11_common.c') diff --git a/video/out/x11_common.c b/video/out/x11_common.c index 19094f24cd..05fae825fc 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -87,8 +87,6 @@ int stop_xscreensaver = 1; static int dpms_disabled = 0; -char *mDisplayName = NULL; - char **vo_fstype_list; /* 1 means that the WM is metacity (broken as hell) */ @@ -410,13 +408,7 @@ int vo_init(struct vo *vo) XSetErrorHandler(x11_errorhandler); -#if 0 - if (!mDisplayName) - if (!(mDisplayName = getenv("DISPLAY"))) - mDisplayName = strdup(":0.0"); -#else - dispName = XDisplayName(mDisplayName); -#endif + dispName = XDisplayName(NULL); mp_msg(MSGT_VO, MSGL_V, "X11 opening display: %s\n", dispName); -- cgit v1.2.3