aboutsummaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2023-10-03 17:02:07 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2023-10-03 17:02:07 +0400
commit1bcc889e6232515a12f38738418586f03ea8c8c6 (patch)
tree7d48643d6a1656b01b78dd26883f3b39dbe95bdf /src/input.rs
parent7bb1c114a2f29f339f547e226cfd7d3af47f414f (diff)
downloadniri-1bcc889e6232515a12f38738418586f03ea8c8c6.tar.gz
niri-1bcc889e6232515a12f38738418586f03ea8c8c6.tar.bz2
niri-1bcc889e6232515a12f38738418586f03ea8c8c6.zip
Add tablet map-to-output setting
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/input.rs b/src/input.rs
index d40221b8..b76a98af 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -472,8 +472,7 @@ impl State {
pointer.frame(self);
}
InputEvent::TabletToolAxis { event, .. } => {
- // FIXME: allow mapping tablet to different outputs.
- let Some(output) = self.niri.global_space.outputs().next() else {
+ let Some(output) = self.niri.output_for_tablet() else {
return;
};
@@ -560,8 +559,7 @@ impl State {
}
}
InputEvent::TabletToolProximity { event, .. } => {
- // FIXME: allow mapping tablet to different outputs.
- let Some(output) = self.niri.global_space.outputs().next() else {
+ let Some(output) = self.niri.output_for_tablet() else {
return;
};