diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-06-19 23:02:45 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-06-19 23:02:45 +0300 |
| commit | cb0ebd35ce237a23a32aeb50ec475645db00bcac (patch) | |
| tree | 0cb4f1c7512e92b412e4fcf6fef923baafbf1b80 /src/niri.rs | |
| parent | 29cf80a3dde69f03697925fe5f03c14e97be4d71 (diff) | |
| download | niri-cb0ebd35ce237a23a32aeb50ec475645db00bcac.tar.gz niri-cb0ebd35ce237a23a32aeb50ec475645db00bcac.tar.bz2 niri-cb0ebd35ce237a23a32aeb50ec475645db00bcac.zip | |
Make tablet without specific output map to union of outputs
Diffstat (limited to 'src/niri.rs')
| -rw-r--r-- | src/niri.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/niri.rs b/src/niri.rs index fca93657..0a3c3e58 100644 --- a/src/niri.rs +++ b/src/niri.rs @@ -2183,9 +2183,7 @@ impl Niri { pub fn output_for_tablet(&self) -> Option<&Output> { let config = self.config.borrow(); let map_to_output = config.input.tablet.map_to_output.as_ref(); - map_to_output - .and_then(|name| self.output_by_name.get(name)) - .or_else(|| self.global_space.outputs().next()) + map_to_output.and_then(|name| self.output_by_name.get(name)) } pub fn output_for_touch(&self) -> Option<&Output> { |
