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
@ -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>
|
2004-07-20 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst/tcp/gstmultifdsink.c: (gst_multifdsink_class_init),
|
* gst/tcp/gstmultifdsink.c: (gst_multifdsink_class_init),
|
||||||
|
@ -314,13 +314,12 @@ gst_ximagesink_xwindow_decorate (GstXImageSink * ximagesink,
|
|||||||
g_mutex_lock (ximagesink->x_lock);
|
g_mutex_lock (ximagesink->x_lock);
|
||||||
|
|
||||||
hints_atom = XInternAtom (ximagesink->xcontext->disp, "_MOTIF_WM_HINTS", 1);
|
hints_atom = XInternAtom (ximagesink->xcontext->disp, "_MOTIF_WM_HINTS", 1);
|
||||||
|
if (hints_atom == None) {
|
||||||
hints = g_malloc0 (sizeof (MotifWmHints));
|
|
||||||
|
|
||||||
if (!hints) {
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hints = g_malloc0 (sizeof (MotifWmHints));
|
||||||
|
|
||||||
hints->flags |= MWM_HINTS_DECORATIONS;
|
hints->flags |= MWM_HINTS_DECORATIONS;
|
||||||
hints->decorations = 1 << 0;
|
hints->decorations = 1 << 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user