mirror of
https://github.com/swaywm/sway.git
synced 2025-11-17 06:59:48 -05:00
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.
This commit is contained in:
parent
3e8f548d1d
commit
09bb71f650
3 changed files with 20 additions and 8 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue