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

Qt4: use --x11-display

parent 19e0e15f
...@@ -260,9 +260,9 @@ static int Open( vlc_object_t *p_this ) ...@@ -260,9 +260,9 @@ static int Open( vlc_object_t *p_this )
intf_sys_t *p_sys; intf_sys_t *p_sys;
#ifdef Q_WS_X11 #ifdef Q_WS_X11
/* Thanks for libqt4 calling exit() in QApplication::QApplication() char *psz_display = var_CreateGetNonEmptyString( p_intf, "x11-display" );
* instead of returning an error, we have to check the X11 display */ Display *p_display = XOpenDisplay( psz_display );
Display *p_display = XOpenDisplay( NULL ); free( psz_display );
if( !p_display ) if( !p_display )
{ {
msg_Err( p_intf, "Could not connect to X server" ); msg_Err( p_intf, "Could not connect to X server" );
......
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