<p>On Jul 11, 2013 7:37 PM, "Peter Hutterer" <<a href="mailto:peter.hutterer@who-t.net">peter.hutterer@who-t.net</a>> wrote:<br>
><br>
> Seats other than seat0 need custom configuration. Provide that with a<br>
> default configuration file so we can share it across distros.<br>
><br>
> This file intentionally does not end in .conf so it won't get picked up by<br>
> the server after a normal installation. gdm, or whatever starts up the<br>
> servers will have to explicitly specifiy this config file.<br>
><br>
> This file replaces the one currently written by systemd's multi-seat-x<br>
> binary:<br>
> <a href="http://cgit.freedesktop.org/systemd/systemd/tree/src/login/multi-seat-x.c">http://cgit.freedesktop.org/systemd/systemd/tree/src/login/multi-seat-x.c</a><br>
><br>
> CC: Lennart Poettering <<a href="mailto:lennart@poettering.net">lennart@poettering.net</a>><br>
> Signed-off-by: Peter Hutterer <<a href="mailto:peter.hutterer@who-t.net">peter.hutterer@who-t.net</a>><br>
> ---<br>
>  config/Makefile.am               |  2 +-<br>
>  config/non-seat0.conf.multi-seat | 18 ++++++++++++++++++<br>
>  2 files changed, 19 insertions(+), 1 deletion(-)<br>
>  create mode 100644 config/non-seat0.conf.multi-seat<br>
><br>
> diff --git a/config/Makefile.am b/config/Makefile.am<br>
> index da81d77..327d07e 100644<br>
> --- a/config/Makefile.am<br>
> +++ b/config/Makefile.am<br>
> @@ -44,4 +44,4 @@ endif # CONFIG_NEED_DBUS<br>
><br>
>  endif # !CONFIG_UDEV<br>
><br>
> -EXTRA_DIST = xorg-server.conf x11-input.fdi 10-evdev.conf fdi2iclass.py 10-quirks.conf<br>
> +EXTRA_DIST = xorg-server.conf x11-input.fdi 10-evdev.conf non-seat0.conf.multi-seat fdi2iclass.py 10-quirks.conf<br>
> diff --git a/config/non-seat0.conf.multi-seat b/config/non-seat0.conf.multi-seat<br>
> new file mode 100644<br>
> index 0000000..34008ce<br>
> --- /dev/null<br>
> +++ b/config/non-seat0.conf.multi-seat<br>
> @@ -0,0 +1,18 @@<br>
> +# This is the default configuration for servers on seat-1 and above.<br>
> +#<br>
> +# Start the server with -config non-seat0.conf.multi-seat, or alternatively<br>
> +# rename the file to end in .conf and put it in the standard config<br>
> +# directory (though it will apply to _all_ seats!).<br>
> +#<br>
> +# * Disable VT switching with Ctrl-Alt-F1<br>
> +# * Force a grab on all input devices to detach them from the VT subsystem<br>
> +#   to avoid event leakage.<br>
> +<br>
> +Section "ServerFlags"<br>
> +        Option "DontVTSwitch" "on"<br>
> +EndSection<br>
> +<br>
> +Section "InputClass"<br>
> +        Identifier "Force input devices to seat"<br>
> +        Option "GrabDevice" "on"<br>
> +EndSection</p>
<p>Is that all there is to it? Looking at this makes me sad that you can't make sections filtered by seat. A project for another day, I guess. </p>
<p>Reviewed-by: Dan Nicholson <<a href="mailto:dbn.lists@gmail.com">dbn.lists@gmail.com</a>></p>