mirror of
https://github.com/swaywm/sway.git
synced 2025-11-24 06:59:51 -05:00
config reload: destroy old seat when removed from config
This adds new sway_seat_destroy and sway_cursor_destroy helpers and compare new and old config on free
This commit is contained in:
parent
869be4378d
commit
5766f426aa
7 changed files with 45 additions and 1 deletions
|
|
@ -25,6 +25,7 @@ struct sway_cursor {
|
|||
struct wl_listener request_set_cursor;
|
||||
};
|
||||
|
||||
void sway_cursor_destroy(struct sway_cursor *cursor);
|
||||
struct sway_cursor *sway_cursor_create(struct sway_seat *seat);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -46,4 +46,6 @@ void sway_input_manager_apply_seat_config(struct sway_input_manager *input,
|
|||
struct sway_seat *sway_input_manager_get_default_seat(
|
||||
struct sway_input_manager *input);
|
||||
|
||||
struct sway_seat *input_manager_get_seat(struct sway_input_manager *input,
|
||||
const char *seat_name);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -29,6 +29,8 @@ struct sway_seat {
|
|||
struct sway_seat *sway_seat_create(struct sway_input_manager *input,
|
||||
const char *seat_name);
|
||||
|
||||
void sway_seat_destroy(struct sway_seat *seat);
|
||||
|
||||
void sway_seat_add_device(struct sway_seat *seat,
|
||||
struct sway_input_device *device);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue