aboutsummaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
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;
};