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

@ -619,6 +619,7 @@ void parse_file(const char *f) {
%token TOK_1PIXEL "1pixel"
%token TOKFOCUSFOLLOWSMOUSE "focus_follows_mouse"
%token TOK_FORCE_FOCUS_WRAPPING "force_focus_wrapping"
%token TOK_FORCE_XINERAMA "force_xinerama"
%token TOKWORKSPACEBAR "workspace_bar"
%token TOK_DEFAULT "default"
%token TOK_STACKING "stacking"
@ -674,6 +675,7 @@ line:
| new_float
| focus_follows_mouse
| force_focus_wrapping
| force_xinerama
| workspace_bar
| workspace
| assign
@ -1022,6 +1024,14 @@ force_focus_wrapping:
}
;
force_xinerama:
TOK_FORCE_XINERAMA bool
{
DLOG("force xinerama = %d\n", $2);
config.force_xinerama = $2;
}
;
workspace_bar:
TOKWORKSPACEBAR bool
{