From ebe5399ed6bfa59f5f5d289bf3d46b08f60787b3 Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Thu, 31 Jan 2019 22:58:52 -0500 Subject: 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. --- sway/sway-input.5.scd | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sway/sway-input.5.scd') diff --git a/sway/sway-input.5.scd b/sway/sway-input.5.scd index 4b14ef14..88b4347a 100644 --- a/sway/sway-input.5.scd +++ b/sway/sway-input.5.scd @@ -172,6 +172,11 @@ in their own "seat"). disables hiding the cursor. The minimal timeout is 100 and any value less than that (aside from 0), will be increased to 100. +*seat* pointer_constraint enable|disable|escape + Enables or disables the ability for clients to capture the cursor (enabled + by default) for the seat. This is primarily useful for video games. The + "escape" command can be used at runtime to escape from a captured client. + # SEE ALSO *sway*(5) *sway-output*(5) -- cgit v1.2.3-54-g00ecf