pointer_constraint: change to a seat subcommand

This changes the `pointer_constraint` command to be a subcommand of seat
to allow for per-seat settings. The current implementation that is not a
seat subcommand will only operate on the current seat and will segfault
in the config due to `config->handler_context.seat` only being set at
runtime.

This also allows for the wildcard identifier to be used to alter the
pointer constraint settings on all seats and allows for the setting to
be merged with the rest of the seat config.
This commit is contained in:
Brian Ashworth 2019-01-31 22:58:52 -05:00
parent 204e1f4712
commit ebe5399ed6
10 changed files with 36 additions and 19 deletions

View file

@ -552,11 +552,6 @@ The default colors are:
\* may be used in lieu of a specific output name to configure all outputs.
A list of output names may be obtained via *swaymsg -t get_outputs*.
*pointer_constraint* enable|disable|escape
Enables or disables the ability for clients to capture the cursor (enabled
by default). This is primarily useful for video games. The "escape" command
can be used at runtime to escape from a captured client.
*popup_during_fullscreen* smart|ignore|leave_fullscreen
Determines what to do when a fullscreen view opens a dialog.
If _smart_ (the default), the dialog will be displayed. If _ignore_, the