[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:38:18 CEST 2010
vlc/vlc-1.1 | branch: master | Erwan Tulou <erwan10 at videolan.org> | Thu May 6 10:01:37 2010 +0200| [f13206ef02f23a7dce9330d82b9dc193258097bc] | committer: Jean-Baptiste Kempf
skins2(Linux): WM_CLASS also set for the invisible root window
(cherry picked from commit 9aa3dfaefa8cadf870856cf89318073fd911a42e)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=f13206ef02f23a7dce9330d82b9dc193258097bc
---
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