From 37bb1e088f9d5bbd9f344825b916dd0108e92012 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Tue, 5 Oct 2010 22:37:33 +0200 Subject: [PATCH] Add 'awesome --no-argb' If awesome is started with that flag, it won't use ARGB visuals. Theoretically, this shouldn't be necessary, but it seems like this triggers bugs in the X server. (Or is it just my server that doesn't like me?) Signed-off-by: Uli Schlachter --- awesome.c | 8 +++++++- manpages/awesome.1.de.txt | 4 +++- manpages/awesome.1.es.txt | 2 ++ manpages/awesome.1.fr.txt | 2 ++ manpages/awesome.1.txt | 2 ++ 5 files changed, 16 insertions(+), 2 deletions(-) diff --git a/awesome.c b/awesome.c index 4e6285a03..a4be417f4 100644 --- a/awesome.c +++ b/awesome.c @@ -307,12 +307,14 @@ main(int argc, char **argv) xcolor_init_request_t colors_reqs[2]; ssize_t cmdlen = 1; xdgHandle xdg; + bool no_argb = false; static struct option long_options[] = { { "help", 0, NULL, 'h' }, { "version", 0, NULL, 'v' }, { "config", 1, NULL, 'c' }, { "check", 0, NULL, 'k' }, + { "no-argb", 0, NULL, 'a' }, { NULL, 0, NULL, 0 } }; @@ -379,6 +381,9 @@ main(int argc, char **argv) else fatal("-c option requires a file name"); break; + case 'a': + no_argb = true; + break; } globalconf.loop = ev_default_loop(EVFLAG_NOSIGFD); @@ -404,7 +409,8 @@ main(int argc, char **argv) fatal("cannot open display"); globalconf.screen = xcb_aux_get_screen(globalconf.connection, globalconf.default_screen); - globalconf.visual = a_argb_visual(globalconf.screen); + if(!no_argb) + globalconf.visual = a_argb_visual(globalconf.screen); if(!globalconf.visual) globalconf.visual = a_default_visual(globalconf.screen); globalconf.default_depth = a_visual_depth(globalconf.screen, globalconf.visual->visual_id); diff --git a/manpages/awesome.1.de.txt b/manpages/awesome.1.de.txt index 9d6bedf51..1c0867a25 100644 --- a/manpages/awesome.1.de.txt +++ b/manpages/awesome.1.de.txt @@ -32,7 +32,9 @@ OPTIONEN *-c*, *--config* 'Datei':: Nutzung einer alternativen Konfigurationsdatei, statt '$XDG_CONFIG_HOME/awesome/rc.lua'. *-k*, *--check*:: - Überprüft die Syntax der Konfigurationsdatei. + Überprüft die Konfigurationsdatei auf Syntaxfehler. +*-a*, *--no-argb*:: + Verwende keine ARGB-Visuals TASTENBELEGUNG FÜR MAUSZEIGER ----------------------------- diff --git a/manpages/awesome.1.es.txt b/manpages/awesome.1.es.txt index 30851f287..6d6852012 100644 --- a/manpages/awesome.1.es.txt +++ b/manpages/awesome.1.es.txt @@ -50,6 +50,8 @@ OPCIONES '$XDG_CONFIG_HOME/awesome/rc.lua'. *-k*, *--check*:: Verifica la sintaxis del archivo de configuración. +*-a*, *--no-argb*:: + No utilice colores ARGB. ATAJOS DE RAtÓN POR OMISIÓN --------------------------- diff --git a/manpages/awesome.1.fr.txt b/manpages/awesome.1.fr.txt index fcb434704..84fc11927 100644 --- a/manpages/awesome.1.fr.txt +++ b/manpages/awesome.1.fr.txt @@ -52,6 +52,8 @@ OPTIONS '$XDG_CONFIG_HOME/awesome/rc.lua'. *-k*, *--check*:: Vérifie la syntaxe du fichier de configuration. +*-a*, *--no-argb*:: + N'utiliser pas couleur ARGB. ASSOCIATIONS AVEC LA SOURIS (PAR DÉFAUT) ---------------------------------------- diff --git a/manpages/awesome.1.txt b/manpages/awesome.1.txt index 7e2b03b6a..6645feaa7 100644 --- a/manpages/awesome.1.txt +++ b/manpages/awesome.1.txt @@ -42,6 +42,8 @@ OPTIONS Use an alternate configuration file instead of '$XDG_CONFIG_HOME/awesome/rc.lua'. *-k*, *--check*:: Check configuration file syntax. +*-a*, *--no-argb*:: + Don't use ARGB visuals. DEFAULT MOUSE BINDINGS -----------------------