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 <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2010-10-05 22:37:33 +02:00
parent c78d144c22
commit 37bb1e088f
5 changed files with 16 additions and 2 deletions

View File

@ -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,6 +409,7 @@ main(int argc, char **argv)
fatal("cannot open display");
globalconf.screen = xcb_aux_get_screen(globalconf.connection, globalconf.default_screen);
if(!no_argb)
globalconf.visual = a_argb_visual(globalconf.screen);
if(!globalconf.visual)
globalconf.visual = a_default_visual(globalconf.screen);

View File

@ -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
-----------------------------

View File

@ -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
---------------------------

View File

@ -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)
----------------------------------------

View File

@ -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
-----------------------