diff options
author | Drew DeVault <[email protected]> | 2018-01-21 11:17:07 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2018-01-21 11:17:07 -0500 |
commit | c933781facbb664fedcd52ab19f35c392cd9e7b4 (patch) | |
tree | 95b0e63411e44958364321bbfe3bc00515625cc6 /sway/input/seat.c | |
parent | 3dd915876d459a2aeeb7a5864330f5bc30bc2f00 (diff) | |
parent | 9f54cd89359119897fed2747c373879c09ae8706 (diff) |
Merge pull request #1570 from acrisci/config-references
Copy input config references
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index d24a6c7a..22fee3c3 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -242,6 +242,7 @@ void sway_seat_set_focus(struct sway_seat *seat, swayc_t *container) { void sway_seat_set_config(struct sway_seat *seat, struct seat_config *seat_config) { // clear configs + free_seat_config(seat->config); seat->config = NULL; struct sway_seat_device *seat_device = NULL; @@ -254,11 +255,9 @@ void sway_seat_set_config(struct sway_seat *seat, } // add configs - seat->config = seat_config; + seat->config = copy_seat_config(seat_config); wl_list_for_each(seat_device, &seat->devices, link) { - seat_device->attachment_config = - seat_config_get_attachment(seat_config, - seat_device->input_device->identifier); + sway_seat_configure_device(seat, seat_device->input_device); } } |