summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2009-06-18 17:58:06 +0300
committerStefan Kost <ensonic@users.sf.net>2009-06-18 17:58:06 +0300
commit192efaf1d016e0986463a551acc78bad5995f7ef (patch)
tree31a16f1225787d9dc1f3d9c4e1a81810ac954c48 /sys
parent4fd61fbaa41902cd51b01d53253acaeb768f8606 (diff)
xvimagesink: set window title from application name
Diffstat (limited to 'sys')
-rw-r--r--sys/xvimage/xvimagesink.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c
index bb348b45..3e4fe769 100644
--- a/sys/xvimage/xvimagesink.c
+++ b/sys/xvimage/xvimagesink.c
@@ -914,6 +914,8 @@ gst_xvimagesink_xwindow_new (GstXvImageSink * xvimagesink,
{
GstXWindow *xwindow = NULL;
XGCValues values;
+ XTextProperty xproperty;
+ const gchar *title;
g_return_val_if_fail (GST_IS_XVIMAGESINK (xvimagesink), NULL);
@@ -934,6 +936,11 @@ gst_xvimagesink_xwindow_new (GstXvImageSink * xvimagesink,
* ConfigureNotify. This takes away flickering of video when resizing. */
XSetWindowBackgroundPixmap (xvimagesink->xcontext->disp, xwindow->win, None);
+ /* set application name as a title */
+ title = g_get_application_name ();
+ if ((XStringListToTextProperty (((char **) &title), 1, &xproperty)) != 0)
+ XSetWMName (xvimagesink->xcontext->disp, xwindow->win, &xproperty);
+
if (xvimagesink->handle_events) {
Atom wm_delete;