diff options
author | Daniel Hill <daniel@gluo.nz> | 2023-02-17 20:06:01 +1300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-02-18 20:15:28 +0100 |
commit | 788118f1944ca23a7f9a7d19537b7756f3518f55 (patch) | |
tree | f98b88b5f39ed4acb31183e0aee73a5c0747b356 | |
parent | Add support for fractional-scale-v1 (diff) | |
download | sway-788118f1944ca23a7f9a7d19537b7756f3518f55.tar.gz sway-788118f1944ca23a7f9a7d19537b7756f3518f55.tar.zst sway-788118f1944ca23a7f9a7d19537b7756f3518f55.zip |
Fix map_to_output * turning off device
Signed-off-by: Daniel Hill <daniel@gluo.nz>
-rw-r--r-- | sway/input/libinput.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/input/libinput.c b/sway/input/libinput.c index 10bd0e35..dd4fc0be 100644 --- a/sway/input/libinput.c +++ b/sway/input/libinput.c | |||
@@ -220,7 +220,8 @@ bool sway_input_configure_libinput_device(struct sway_input_device *input_device | |||
220 | 220 | ||
221 | bool changed = false; | 221 | bool changed = false; |
222 | if (ic->mapped_to_output && | 222 | if (ic->mapped_to_output && |
223 | !output_by_name_or_id(ic->mapped_to_output)) { | 223 | strcmp("*", ic->mapped_to_output) != 0 && |
224 | !output_by_name_or_id(ic->mapped_to_output)) { | ||
224 | sway_log(SWAY_DEBUG, | 225 | sway_log(SWAY_DEBUG, |
225 | "%s '%s' is mapped to offline output '%s'; disabling input", | 226 | "%s '%s' is mapped to offline output '%s'; disabling input", |
226 | ic->input_type, ic->identifier, ic->mapped_to_output); | 227 | ic->input_type, ic->identifier, ic->mapped_to_output); |