Set WM_CLASS of the xvimagesink window so window managers can apply rules
based on xprop filtering.
/* 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);
}
}
}