Commit 766d4696 authored by Erwan Tulou's avatar Erwan Tulou

skins2(Linux): check if _NET_WM_PID is supported

This kills X11 warnings for Ubuntu/Gnome.
(cherry picked from commit 2eb55c6d8e2c2932a9703070fddabca6a18633e0)
parent feb809cc
...@@ -184,9 +184,12 @@ X11Window::X11Window( intf_thread_t *pIntf, GenericWindow &rWindow, ...@@ -184,9 +184,12 @@ X11Window::X11Window( intf_thread_t *pIntf, GenericWindow &rWindow,
delete[] hostname; delete[] hostname;
// initialize EWMH pid // initialize EWMH pid
pid_t pid = getpid(); if( NET_WM_PID != None )
XChangeProperty( XDISPLAY, m_wnd, NET_WM_PID, XA_CARDINAL, 32, {
PropModeReplace, (unsigned char *)&pid, 1 ); pid_t pid = getpid();
XChangeProperty( XDISPLAY, m_wnd, NET_WM_PID, XA_CARDINAL, 32,
PropModeReplace, (unsigned char *)&pid, 1 );
}
} }
......
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