gboolean handle_events;
+ Colormap internal_colormap;
GstVideoRectangle render_rect;
};
win_attr.background_pixel = 0;
win_attr.border_pixel = 0;
- win_attr.colormap =
+ window_x11->priv->internal_colormap = win_attr.colormap =
XCreateColormap (window_x11->device, window_x11->root,
window_x11->visual_info->visual, AllocNone);
XDestroyWindow (window_x11->device, window_x11->internal_win_id);
+ XFreeColormap (window_x11->device, window_x11->priv->internal_colormap);
+
/* Ensure everything is sent immediatly */
XSync (window_x11->device, FALSE);
}