mirror of
https://github.com/swaywm/sway.git
synced 2025-11-24 06:59:51 -05:00
input: disable events for map_to_output devices when output not present
Fixes #3449.
This commit is contained in:
parent
d328c2439c
commit
b3f08597cd
5 changed files with 44 additions and 17 deletions
|
|
@ -481,14 +481,7 @@ bool apply_output_config(struct output_config *oc, struct sway_output *output) {
|
|||
// Reconfigure all devices, since input config may have been applied before
|
||||
// this output came online, and some config items (like map_to_output) are
|
||||
// dependent on an output being present.
|
||||
struct sway_input_device *input_device = NULL;
|
||||
wl_list_for_each(input_device, &server.input->devices, link) {
|
||||
struct sway_seat *seat = NULL;
|
||||
wl_list_for_each(seat, &server.input->seats, link) {
|
||||
seat_configure_device(seat, input_device);
|
||||
}
|
||||
}
|
||||
|
||||
input_manager_configure_all_inputs();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue