]> git.sesse.net Git - vlc/commitdiff
skins2(Linux): WM_CLASS also set for the invisible root window
authorErwan Tulou <erwan10@videolan.org>
Thu, 6 May 2010 08:01:37 +0000 (10:01 +0200)
committerErwan Tulou <erwan10@videolan.org>
Thu, 6 May 2010 08:30:34 +0000 (10:30 +0200)
modules/gui/skins2/x11/x11_display.cpp

index 5c1c16a3662e138857ab9155b3580d095e4b3139..c28b521b7abbaf4c02c0a4f102fac7df4f89c709 100644 (file)
@@ -209,6 +209,12 @@ X11Display::X11Display( intf_thread_t *pIntf ): SkinObject( pIntf ),
         m_mainWindow = XCreateWindow( m_pDisplay, root, 0, 0, 1, 1, 0, 0,
                                       InputOutput, CopyFromParent, 0, &attr );
 
+        // initialize WM_CLASS
+        XClassHint classhint;
+        classhint.res_name = (char*) "vlc";
+        classhint.res_class = (char*) "Vlc";
+        XSetClassHint( m_pDisplay, m_mainWindow, &classhint );
+
         // Receive WM_DELETE_WINDOW
         Atom wm_delete = XInternAtom( m_pDisplay, "WM_DELETE_WINDOW", False);
         XSetWMProtocols( m_pDisplay, m_mainWindow, &wm_delete, 1);