mirror of
https://github.com/swaywm/sway.git
synced 2026-03-01 01:40:32 -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
|
|
@ -266,6 +266,11 @@ void output_disable(struct sway_output *output) {
|
|||
output->current_mode = NULL;
|
||||
|
||||
arrange_root();
|
||||
|
||||
// Reconfigure all devices, since devices with map_to_output directives for
|
||||
// an output that goes offline should stop sending events as long as the
|
||||
// output remains offline.
|
||||
input_manager_configure_all_inputs();
|
||||
}
|
||||
|
||||
void output_begin_destroy(struct sway_output *output) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue