aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2023-11-16 14:56:46 +0100
committerLibravatar Kenny Levinsen <kl@kl.wtf>2023-11-16 16:29:07 +0100
commit7036769bea886ab1f9d627785f14cea9e25b16f7 (patch)
tree73df7ae212c8f2587abd9860bcb54be3c831a6fb /include
parentinput/seat: rename seat_apply_input_config (diff)
downloadsway-7036769bea886ab1f9d627785f14cea9e25b16f7.tar.gz
sway-7036769bea886ab1f9d627785f14cea9e25b16f7.tar.zst
sway-7036769bea886ab1f9d627785f14cea9e25b16f7.zip
Only reconfigure input mappings on output change
Fully reconfiguring all input devices on output change takes a loooong time. Let's just reconfigure what we need: only mappings depend on outputs.
Diffstat (limited to 'include')
-rw-r--r--include/sway/input/input-manager.h2
-rw-r--r--include/sway/input/seat.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/include/sway/input/input-manager.h b/include/sway/input/input-manager.h
index b651e3dd..6652d60c 100644
--- a/include/sway/input/input-manager.h
+++ b/include/sway/input/input-manager.h
@@ -47,6 +47,8 @@ void input_manager_apply_input_config(struct input_config *input_config);
47 47
48void input_manager_configure_all_inputs(void); 48void input_manager_configure_all_inputs(void);
49 49
50void input_manager_configure_all_input_mappings(void);
51
50void input_manager_reset_input(struct sway_input_device *input_device); 52void input_manager_reset_input(struct sway_input_device *input_device);
51 53
52void input_manager_reset_all_inputs(void); 54void input_manager_reset_all_inputs(void);
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h
index 35a96ace..97e81c19 100644
--- a/include/sway/input/seat.h
+++ b/include/sway/input/seat.h
@@ -168,6 +168,9 @@ void seat_add_device(struct sway_seat *seat,
168void seat_configure_device(struct sway_seat *seat, 168void seat_configure_device(struct sway_seat *seat,
169 struct sway_input_device *device); 169 struct sway_input_device *device);
170 170
171void seat_configure_device_mapping(struct sway_seat *seat,
172 struct sway_input_device *input_device);
173
171void seat_reset_device(struct sway_seat *seat, 174void seat_reset_device(struct sway_seat *seat,
172 struct sway_input_device *input_device); 175 struct sway_input_device *input_device);
173 176