XCB window: set background color to black
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Thu, 5 Feb 2009 18:58:29 +0000 (20:58 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Thu, 5 Feb 2009 18:58:29 +0000 (20:58 +0200)
modules/video_output/xcb/window.c

index f5289c7..50cef9e 100644 (file)
@@ -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)
     {