From 1bcc889e6232515a12f38738418586f03ea8c8c6 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 3 Oct 2023 17:02:07 +0400 Subject: Add tablet map-to-output setting --- src/input.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/input.rs') 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; }; -- cgit