diff options
author | Luis de Bethencourt <luis.bg@samsung.com> | 2015-06-05 15:58:39 +0100 |
---|---|---|
committer | Luis de Bethencourt <luis.bg@samsung.com> | 2015-06-08 17:08:26 +0100 |
commit | c3a19f7851c9e0c5d28a87bbdfb1369e841d43a5 (patch) | |
tree | 2cf087f6aec191ade86a163800a59a010c9cf90d /sys | |
parent | 92ef0f8c382a61e92741c9869e1291ee9b490e29 (diff) |
xvimagesink: set WM_CLASS of window
Set WM_CLASS of the xvimagesink window so window managers can apply rules
based on xprop filtering.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/xvimage/xvcontext.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/xvimage/xvcontext.c b/sys/xvimage/xvcontext.c index 6d84e37eeb..b04a49cacc 100644 --- a/sys/xvimage/xvcontext.c +++ b/sys/xvimage/xvcontext.c @@ -1080,10 +1080,18 @@ gst_xwindow_set_title (GstXWindow * window, const gchar * title) /* we have a window */ if (window->internal && title) { XTextProperty xproperty; + XClassHint *hint = XAllocClassHint (); if ((XStringListToTextProperty (((char **) &title), 1, &xproperty)) != 0) { XSetWMName (context->disp, window->win, &xproperty); XFree (xproperty.value); + + if (hint) { + hint->res_name = g_strdup (title); + hint->res_class = g_strdup ("GStreamer"); + XSetClassHint (context->disp, window->win, hint); + } + XFree (hint); } } } |