aboutsummaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
Diffstat (limited to 'src/input')
-rw-r--r--src/input/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/input/mod.rs b/src/input/mod.rs
index 44832911..7fc606ba 100644
--- a/src/input/mod.rs
+++ b/src/input/mod.rs
@@ -1897,7 +1897,8 @@ impl State {
let under = self.niri.surface_under_and_global_space(pos);
let tablet_seat = self.niri.seat.tablet_seat();
- let tool = tablet_seat.add_tool::<Self>(&self.niri.display_handle, &event.tool());
+ let display_handle = self.niri.display_handle.clone();
+ let tool = tablet_seat.add_tool::<Self>(self, &display_handle, &event.tool());
let tablet = tablet_seat.get_tablet(&TabletDescriptor::from(&event.device()));
if let Some(tablet) = tablet {
match event.state() {