Original commit message from CVS:
* sys/ximage/ximagesink.c: (gst_ximagesink_xwindow_decorate):
Don't use an Atom that doesn't exist.
+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),
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;