diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-01-09 00:09:20 -0500 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-01-09 11:24:15 -0500 |
commit | 4696f49ecc69aa86ea6bd53fc08abf6a32b4a414 (patch) | |
tree | 67c4e3d792c49ac7fbf6311c8b0d842768d29bc4 /include | |
parent | Reset container dimensions when moving into workspace from direction (diff) | |
download | sway-4696f49ecc69aa86ea6bd53fc08abf6a32b4a414.tar.gz sway-4696f49ecc69aa86ea6bd53fc08abf6a32b4a414.tar.zst sway-4696f49ecc69aa86ea6bd53fc08abf6a32b4a414.zip |
reload: reset input configs
This resets all input options to their defaults on reload. This also
fixes some debug log typos in `input_manager_libinput_config_pointer`.
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/input/input-manager.h | 4 | ||||
-rw-r--r-- | include/sway/input/seat.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/sway/input/input-manager.h b/include/sway/input/input-manager.h index 08e749dc..8e8bf1f2 100644 --- a/include/sway/input/input-manager.h +++ b/include/sway/input/input-manager.h | |||
@@ -37,6 +37,10 @@ void input_manager_configure_xcursor(void); | |||
37 | 37 | ||
38 | void input_manager_apply_input_config(struct input_config *input_config); | 38 | void input_manager_apply_input_config(struct input_config *input_config); |
39 | 39 | ||
40 | void input_manager_reset_input(struct sway_input_device *input_device); | ||
41 | |||
42 | void input_manager_reset_all_inputs(); | ||
43 | |||
40 | void input_manager_apply_seat_config(struct seat_config *seat_config); | 44 | void input_manager_apply_seat_config(struct seat_config *seat_config); |
41 | 45 | ||
42 | struct sway_seat *input_manager_get_default_seat(void); | 46 | struct sway_seat *input_manager_get_default_seat(void); |
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h index a3c20346..c10b48b1 100644 --- a/include/sway/input/seat.h +++ b/include/sway/input/seat.h | |||
@@ -100,6 +100,9 @@ void seat_add_device(struct sway_seat *seat, | |||
100 | void seat_configure_device(struct sway_seat *seat, | 100 | void seat_configure_device(struct sway_seat *seat, |
101 | struct sway_input_device *device); | 101 | struct sway_input_device *device); |
102 | 102 | ||
103 | void seat_reset_device(struct sway_seat *seat, | ||
104 | struct sway_input_device *input_device); | ||
105 | |||
103 | void seat_remove_device(struct sway_seat *seat, | 106 | void seat_remove_device(struct sway_seat *seat, |
104 | struct sway_input_device *device); | 107 | struct sway_input_device *device); |
105 | 108 | ||