]> Dogcows Code - chaz/openbox/commitdiff
use the render depth/visual for creating windows
authorDana Jansens <danakj@orodu.net>
Mon, 17 Mar 2003 22:31:17 +0000 (22:31 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 17 Mar 2003 22:31:17 +0000 (22:31 +0000)
engines/openbox/openbox.c

index 15cb19d6ce75e093d0b648bc6b036adb186f3b9f..aa4c71ead35a1b34d13a26144dd0afd4ad73ebb7 100644 (file)
@@ -242,10 +242,8 @@ void shutdown()
 static Window createWindow(Window parent, unsigned long mask,
                           XSetWindowAttributes *attrib)
 {
-    /* XXX DONT USE THE DEFAULT SHIT */
     return XCreateWindow(ob_display, parent, 0, 0, 1, 1, 0,
-                        DefaultDepth(ob_display, ob_screen), InputOutput,
-                        DefaultVisual(ob_display, ob_screen),
+                        render_depth, InputOutput, render_visual,
                         mask, attrib);
                        
 }
This page took 0.02408 seconds and 4 git commands to generate.