[vlc-commits] commit: skins2(Linux): WM_CLASS also set for the invisible root window ( Erwan Tulou )

git at videolan.org git at videolan.org
Thu May 6 10:31:45 CEST 2010


vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Thu May  6 10:01:37 2010 +0200| [9aa3dfaefa8cadf870856cf89318073fd911a42e] | committer: Erwan Tulou 

skins2(Linux): WM_CLASS also set for the invisible root window

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9aa3dfaefa8cadf870856cf89318073fd911a42e
---

 modules/gui/skins2/x11/x11_display.cpp |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/modules/gui/skins2/x11/x11_display.cpp b/modules/gui/skins2/x11/x11_display.cpp
index 5c1c16a..c28b521 100644
--- a/modules/gui/skins2/x11/x11_display.cpp
+++ b/modules/gui/skins2/x11/x11_display.cpp
@@ -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);



More information about the vlc-commits mailing list