diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ximage/ximagesink.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/ximage/ximagesink.c b/sys/ximage/ximagesink.c index 7814ac84a..328a617e1 100644 --- a/sys/ximage/ximagesink.c +++ b/sys/ximage/ximagesink.c @@ -378,6 +378,7 @@ gst_ximagesink_xwindow_set_title (GstXImageSink * ximagesink, /* we have a window */ if (xwindow->internal) { XTextProperty xproperty; + XClassHint *hint = XAllocClassHint (); const gchar *app_name; const gchar *title = NULL; gchar *title_mem = NULL; @@ -403,6 +404,13 @@ gst_ximagesink_xwindow_set_title (GstXImageSink * ximagesink, g_free (title_mem); } + + if (hint) { + hint->res_name = g_strdup (app_name); + hint->res_class = g_strdup ("GStreamer"); + XSetClassHint (ximagesink->xcontext->disp, xwindow->win, hint); + } + XFree (hint); } } } |