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/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway/meson.build') diff --git a/sway/meson.build b/sway/meson.build index b3837e21..293a4ed2 100644 --- a/sway/meson.build +++ b/sway/meson.build @@ -75,7 +75,6 @@ sway_sources = files( 'commands/nop.c', 'commands/output.c', 'commands/popup_during_fullscreen.c', - 'commands/pointer_constraint.c', 'commands/reload.c', 'commands/rename.c', 'commands/resize.c', @@ -85,6 +84,7 @@ sway_sources = files( 'commands/seat/cursor.c', 'commands/seat/fallback.c', 'commands/seat/hide_cursor.c', + 'commands/seat/pointer_constraint.c', 'commands/set.c', 'commands/show_marks.c', 'commands/smart_borders.c', -- cgit v1.2.3-54-g00ecf