Add force_xinerama configuration option

The configuration option does the same as the commandline parameter, except
it can be easily set by the user (e.g. you are using KDM and can't start a
session through ~/.xsession).

Signed-off-by: Michael Walle <michael@walle.cc>
This commit is contained in:
Michael Walle
2011-09-19 22:43:25 +02:00
committed by Michael Stapelberg
parent 0c51b57b99
commit 5aa43d61f8
4 changed files with 25 additions and 1 deletions

View File

@ -432,7 +432,10 @@ int main(int argc, char *argv[]) {
free(greply);
if (force_xinerama) {
/* Force Xinerama (for drivers which don't support RandR yet, esp. the
* nVidia binary graphics driver), when specified either in the config
* file or on command-line */
if (force_xinerama || config.force_xinerama) {
xinerama_init();
} else {
DLOG("Checking for XRandR...\n");