Commit f222f159 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Do not pass custom Xlib display to Qt4 - fixes #2322

parent 61c280c5
......@@ -368,10 +368,15 @@ static void *Thread( void *obj )
/* Start the QApplication here */
#ifdef Q_WS_X11
QVLCApp app( (Display *)p_intf->p_sys->display, argc, argv );
#else
QVLCApp app( argc, argv );
char *display = var_CreateGetNonEmptyString( p_intf, "x11-display" );
if( display )
{
argv[argc++] = const_cast<char *>("-display");
argv[argc++] = display;
argv[argc] = NULL;
}
#endif
QVLCApp app( argc, argv );
p_intf->p_sys->p_app = &app;
......@@ -505,6 +510,7 @@ static void *Thread( void *obj )
free( psz_path );
/* Delete the application automatically */
free( display );
return NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment