]> git.sesse.net Git - vlc/commitdiff
XCB: use the selected visual rather than the root visual
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 7 Feb 2009 19:56:54 +0000 (21:56 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 7 Feb 2009 21:42:49 +0000 (23:42 +0200)
modules/video_output/xcb/xcb.c

index eae5820ecc4b29022b6255189ea46ae63f43792b..33101e8c8f72bacba8666ac660dc93f69ddd7afd 100644 (file)
@@ -453,7 +453,7 @@ static int Init (vout_thread_t *vout)
     c = xcb_create_window_checked (p_sys->conn, screen->root_depth, window,
                                    p_sys->parent, x, y, width, height, 0,
                                    XCB_WINDOW_CLASS_INPUT_OUTPUT,
-                                   screen->root_visual, mask, values);
+                                   p_sys->vid, mask, values);
     if (CheckError (vout, "cannot create X11 window", c))
         goto error;
     p_sys->window = window;