Set WM_CLASS of the ximagesink window so window managers can apply rules
based on xprop filtering.
/* we have a window */
if (xwindow->internal) {
XTextProperty xproperty;
+ XClassHint *hint = XAllocClassHint ();
const gchar *app_name;
const gchar *title = NULL;
gchar *title_mem = NULL;
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);
}
}
}