aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/input-manager.c
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2023-12-30 20:22:01 +0100
committerLibravatar Kenny Levinsen <kl@kl.wtf>2024-01-02 14:07:35 +0100
commit95265fba59bce77ed52a74fcc21abf7f668c01b2 (patch)
treebe79909a28e9fb2c015978fe400f0188293d1e51 /sway/input/input-manager.c
parentRemove wlr_presentation in sway_server struct (diff)
downloadsway-95265fba59bce77ed52a74fcc21abf7f668c01b2.tar.gz
sway-95265fba59bce77ed52a74fcc21abf7f668c01b2.tar.zst
sway-95265fba59bce77ed52a74fcc21abf7f668c01b2.zip
input: reconfigure send_events on output hotplug
Closes: https://github.com/swaywm/sway/issues/7890
Diffstat (limited to 'sway/input/input-manager.c')
-rw-r--r--sway/input/input-manager.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/input/input-manager.c b/sway/input/input-manager.c
index 4febc333..c1bbdde0 100644
--- a/sway/input/input-manager.c
+++ b/sway/input/input-manager.c
@@ -534,6 +534,13 @@ void input_manager_configure_all_input_mappings(void) {
534 wl_list_for_each(seat, &server.input->seats, link) { 534 wl_list_for_each(seat, &server.input->seats, link) {
535 seat_configure_device_mapping(seat, input_device); 535 seat_configure_device_mapping(seat, input_device);
536 } 536 }
537
538#if WLR_HAS_LIBINPUT_BACKEND
539 // Input devices mapped to unavailable outputs get their libinput
540 // send_events setting switched to false. We need to re-enable this
541 // when the output appears.
542 sway_input_configure_libinput_device_send_events(input_device);
543#endif
537 } 544 }
538} 545}
539 546