diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2018-12-29 21:50:03 -0500 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-12-30 14:12:36 +0100 |
commit | 09bb71f6507d86d98b5b9825f28b91ddd4b9a09b (patch) | |
tree | de570ea01b3262c46441afb1f75570a4d44210e8 /include/sway | |
parent | 3e8f548d1d0acb3aba384842615e6528b3027283 (diff) |
Verify seat fallback settings on reload
This fixes an issue where on reload, all input devices that were added
via an implicit fallback to the default seat would be removed from the
default seat and applications would crash due to the seat having no
capabilities.
On reload, there is a query for a seat config with the fallback setting
set (it can either be true or false). If no such seat config exists, the
default seat is created (if needed) and has the implicit fallback true
applied to its seat config. This is the same procedure that occurs when
a new input is detected.
Diffstat (limited to 'include/sway')
-rw-r--r-- | include/sway/input/input-manager.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sway/input/input-manager.h b/include/sway/input/input-manager.h index 219aa9ba..08e749dc 100644 --- a/include/sway/input/input-manager.h +++ b/include/sway/input/input-manager.h @@ -44,6 +44,12 @@ struct sway_seat *input_manager_get_default_seat(void); struct sway_seat *input_manager_get_seat(const char *seat_name); /** + * If none of the seat configs have a fallback setting (either true or false), + * create the default seat (if needed) and set it as the fallback + */ +void input_manager_verify_fallback_seat(void); + +/** * Gets the last seat the user interacted with */ struct sway_seat *input_manager_current_seat(void); |