]> git.sesse.net Git - vlc/commitdiff
Remove useless display pointer
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 15 Apr 2009 19:57:33 +0000 (22:57 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 15 Apr 2009 19:57:33 +0000 (22:57 +0300)
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.hpp

index b66626e0bd5b272adf33e25870d0d86613f37289..cc3c9c2d555ab9a80d0062c936e42c5d539efbda 100644 (file)
@@ -278,6 +278,7 @@ static int Open( vlc_object_t *p_this )
         msg_Err( p_intf, "Could not connect to X server" );
         return VLC_EGENERIC;
     }
+    XCloseDisplay( p_display );
 #endif
 
     /* Allocations of p_sys */
@@ -286,9 +287,6 @@ static int Open( vlc_object_t *p_this )
     p_sys->p_popup_menu = NULL;
     p_sys->p_mi = NULL;
     p_sys->p_playlist = pl_Hold( p_intf );
-#ifdef Q_WS_X11
-    p_sys->display = p_display;
-#endif
 
     /* */
     if( vlc_clone( &p_sys->thread, Thread, p_intf, VLC_THREAD_PRIORITY_LOW ) )
@@ -335,9 +333,6 @@ static void Close( vlc_object_t *p_this )
     QVLCApp::triggerQuit();
 
     vlc_join (p_sys->thread, NULL);
-#ifdef Q_WS_X11
-    XCloseDisplay ((Display *)p_sys->display);
-#endif
     pl_Release (p_this);
     delete p_sys;
 }
index 9077cb900d23a4a027e9abe291e8d3e1bb5963ad..3c0dbec9043aa6e31f83111b23bafb873ada02c4 100644 (file)
@@ -75,9 +75,6 @@ struct intf_sys_t
     const char *psz_filepath; /* Last path used in dialogs */
 
     QMenu * p_popup_menu;    /* The right click menu */
-#ifdef Q_WS_X11 /* WTH is this included in ALL files? :( */
-    void *display;
-#endif
 };
 
 #define THEPL p_intf->p_sys->p_playlist