From c7da695e1002c25fd234d6a2af946e6dd8655b7f Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Thu, 21 Oct 2010 18:16:13 +0200 Subject: [PATCH] Use the screen's default visual by default again Seems like there are enough bugs in the X server that one can't really use a 32 bit visual. Looks of repaint errors. :( This should somehow be fixed properly before release. For now, this just swaps the default behavior and the "--no-argb" behavior. Signed-off-by: Uli Schlachter --- awesome.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/awesome.c b/awesome.c index fca0a7017..b25cb3ffc 100644 --- a/awesome.c +++ b/awesome.c @@ -417,10 +417,11 @@ main(int argc, char **argv) fatal("cannot open display"); globalconf.screen = xcb_aux_get_screen(globalconf.connection, globalconf.default_screen); + /* FIXME The following two assignments were swapped on purpose */ if(!no_argb) - globalconf.visual = a_argb_visual(globalconf.screen); - if(!globalconf.visual) globalconf.visual = a_default_visual(globalconf.screen); + if(!globalconf.visual) + globalconf.visual = a_argb_visual(globalconf.screen); globalconf.default_depth = a_visual_depth(globalconf.screen, globalconf.visual->visual_id); globalconf.default_cmap = globalconf.screen->default_colormap; if(globalconf.default_depth != globalconf.screen->root_depth)