#define NET_WM_STAYS_ON_TOP m_rDisplay.m_net_wm_stays_on_top
#define NET_WM_WINDOW_OPACITY m_rDisplay.m_net_wm_window_opacity
+#define NET_WM_PID m_rDisplay.m_net_wm_pid
/// Class for encapsulation of a X11 Display
class X11Display: public SkinObject
Atom m_net_wm_stays_on_top;
Atom m_net_wm_window_opacity;
+ Atom m_net_wm_pid;
+
/// test EWMH capabilities
void testEWMH();
// Associate the window to the main "parent" window
XSetTransientForHint( XDISPLAY, m_wnd, m_rDisplay.getMainWindow() );
+ // initialize Class Hint
+ XClassHint classhint;
+ classhint.res_name = (char*) "vlc";
+ classhint.res_class = (char*) "Vlc";
+ XSetClassHint( XDISPLAY, m_wnd, &classhint );
+
+ // initialize EWMH pid
+ pid_t pid = getpid();
+ XChangeProperty( XDISPLAY, m_wnd, NET_WM_PID, XA_CARDINAL, 32,
+ PropModeReplace, (unsigned char *)&pid, 1 );
+
}