aboutsummaryrefslogtreecommitdiff
path: root/include/sway
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-11-16 14:56:46 +0100
committerKenny Levinsen <kl@kl.wtf>2023-11-16 16:29:07 +0100
commit7036769bea886ab1f9d627785f14cea9e25b16f7 (patch)
tree73df7ae212c8f2587abd9860bcb54be3c831a6fb /include/sway
parentcaa92ddee81b4af121773abc048ab79ea6df0a98 (diff)
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/sway')
-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);
void input_manager_configure_all_inputs(void);
+void input_manager_configure_all_input_mappings(void);
+
void input_manager_reset_input(struct sway_input_device *input_device);
void 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,
void seat_configure_device(struct sway_seat *seat,
struct sway_input_device *device);
+void seat_configure_device_mapping(struct sway_seat *seat,
+ struct sway_input_device *input_device);
+
void seat_reset_device(struct sway_seat *seat,
struct sway_input_device *input_device);