mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
xvimagesink: set window title from application name
This commit is contained in:
parent
4fd61fbaa4
commit
192efaf1d0
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue