mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-29 20:35:40 +00:00
sys/ximage/ximagesink.c: Don't use an Atom that doesn't exist.
Original commit message from CVS: * sys/ximage/ximagesink.c: (gst_ximagesink_xwindow_decorate): Don't use an Atom that doesn't exist.
This commit is contained in:
parent
5eab54426e
commit
02ef2b6e5f
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-07-20 David Schleef <ds@schleef.org>
|
||||
|
||||
* sys/ximage/ximagesink.c: (gst_ximagesink_xwindow_decorate):
|
||||
Don't use an Atom that doesn't exist.
|
||||
|
||||
2004-07-20 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* gst/tcp/gstmultifdsink.c: (gst_multifdsink_class_init),
|
||||
|
|
|
@ -314,13 +314,12 @@ gst_ximagesink_xwindow_decorate (GstXImageSink * ximagesink,
|
|||
g_mutex_lock (ximagesink->x_lock);
|
||||
|
||||
hints_atom = XInternAtom (ximagesink->xcontext->disp, "_MOTIF_WM_HINTS", 1);
|
||||
|
||||
hints = g_malloc0 (sizeof (MotifWmHints));
|
||||
|
||||
if (!hints) {
|
||||
if (hints_atom == None) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
hints = g_malloc0 (sizeof (MotifWmHints));
|
||||
|
||||
hints->flags |= MWM_HINTS_DECORATIONS;
|
||||
hints->decorations = 1 << 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue