Commit bfe80765 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XCB window: set background color to black

parent b8554d1c
......@@ -79,12 +79,17 @@ static int Open (vlc_object_t *obj)
/* Create window */
xcb_screen_t *scr = xcb_aux_get_screen (conn, snum);
const uint32_t mask = XCB_CW_BACK_PIXEL;
uint32_t values[1] = {
/* XCB_CW_BACK_PIXEL */
scr->black_pixel,
};
xcb_window_t window = xcb_generate_id (conn);
ck = xcb_create_window_checked (conn, scr->root_depth, window, scr->root,
0, 0, wnd->width, wnd->height, 0,
XCB_WINDOW_CLASS_INPUT_OUTPUT,
scr->root_visual, 0, NULL);
scr->root_visual, mask, values);
err = xcb_request_check (conn, ck);
if (err)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment