From 09bb71f6507d86d98b5b9825f28b91ddd4b9a09b Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Sat, 29 Dec 2018 21:50:03 -0500 Subject: 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. --- include/sway/input/input-manager.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') 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 @@ -43,6 +43,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 */ -- cgit v1.2.3