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

skins2: do not follow --x11-display anymore

(Refer to the previous commit for rationale)
parent 7a6342fc
...@@ -59,9 +59,8 @@ type X11Display::blendPixel(type v,type r, type g, type b, type a) const ...@@ -59,9 +59,8 @@ type X11Display::blendPixel(type v,type r, type g, type b, type a) const
X11Display::X11Display( intf_thread_t *pIntf ): SkinObject( pIntf ), X11Display::X11Display( intf_thread_t *pIntf ): SkinObject( pIntf ),
m_mainWindow( 0 ), m_gc( NULL ), m_colormap( 0 ) m_mainWindow( 0 ), m_gc( NULL ), m_colormap( 0 )
{ {
m_psz_display = var_CreateGetNonEmptyString( pIntf, "x11-display" );
// Open a connection to the X Server // Open a connection to the X Server
m_pDisplay = XOpenDisplay( m_psz_display ); m_pDisplay = XOpenDisplay( NULL );
if( m_pDisplay == NULL ) if( m_pDisplay == NULL )
{ {
MSG_ERR( "Cannot open display" ); MSG_ERR( "Cannot open display" );
...@@ -285,7 +284,6 @@ X11Display::X11Display( intf_thread_t *pIntf ): SkinObject( pIntf ), ...@@ -285,7 +284,6 @@ X11Display::X11Display( intf_thread_t *pIntf ): SkinObject( pIntf ),
X11Display::~X11Display() X11Display::~X11Display()
{ {
free( m_psz_display );
if( m_mainWindow ) XDestroyWindow( m_pDisplay, m_mainWindow ); if( m_mainWindow ) XDestroyWindow( m_pDisplay, m_mainWindow );
if( m_gc ) XFreeGC( m_pDisplay, m_gc ); if( m_gc ) XFreeGC( m_pDisplay, m_gc );
if( m_colormap ) XFreeColormap( m_pDisplay, m_colormap ); if( m_colormap ) XFreeColormap( m_pDisplay, m_colormap );
......
...@@ -84,8 +84,7 @@ public: ...@@ -84,8 +84,7 @@ public:
Window getMainWindow() const { return m_mainWindow; } Window getMainWindow() const { return m_mainWindow; }
/// Get the x11_display string (to be freed by caller) /// Get the x11_display string (to be freed by caller)
char* getX11Display() char* getX11Display() { return NULL; }
{ return (m_psz_display ? strdup( m_psz_display ) : NULL); }
/// EWMH spec /// EWMH spec
Atom m_net_wm_supported; Atom m_net_wm_supported;
...@@ -102,8 +101,6 @@ public: ...@@ -102,8 +101,6 @@ public:
void testEWMH(); void testEWMH();
private: private:
/// x11-display (as a character string)
char* m_psz_display;
/// Dummy parent window for the task bar /// Dummy parent window for the task bar
Window m_mainWindow; Window m_mainWindow;
/// Display parameters /// Display parameters
......
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