Commit ec30dbc1 authored by Erwan Tulou's avatar Erwan Tulou

skins2(Linux): check if _NET_WM_PID is supported

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