summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2008-09-19 12:17:00 +0000
committerphintuka <phintuka>2008-09-19 12:17:00 +0000
commitd2dc02ea324d28aba0e9ce3b52d6b99726acaa44 (patch)
treeead1e7ea591c9a474c803ddffdf73f8ad34c661e
parent96499007b1728806c1d4764edbf2d2b5febcc370 (diff)
downloadxineliboutput-d2dc02ea324d28aba0e9ce3b52d6b99726acaa44.tar.gz
xineliboutput-d2dc02ea324d28aba0e9ce3b52d6b99726acaa44.tar.bz2
Added WM class hint to sxfe windows
(Thanks to Rolf Ahrenberg)
-rw-r--r--xine_sxfe_frontend.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/xine_sxfe_frontend.c b/xine_sxfe_frontend.c
index d0d3b01b..91a3f6a6 100644
--- a/xine_sxfe_frontend.c
+++ b/xine_sxfe_frontend.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: xine_sxfe_frontend.c,v 1.81 2008-07-28 18:46:21 phintuka Exp $
+ * $Id: xine_sxfe_frontend.c,v 1.82 2008-09-19 12:17:00 phintuka Exp $
*
*/
@@ -1008,6 +1008,16 @@ static void create_windows(sxfe_t *this)
/* full-screen window */
set_fullscreen_props(this);
+ /* Window hint */
+ XClassHint *classHint = XAllocClassHint();
+ if(classHint) {
+ classHint->res_name = "VDR";
+ classHint->res_class = "VDR";
+ XSetClassHint(this->display, this->window[0], classHint);
+ XSetClassHint(this->display, this->window[1], classHint);
+ XFree(classHint);
+ }
+
/* Window name */
#ifdef FE_STANDALONE
XStoreName(this->display, this->window[0], "VDR - ");