From 4656332d0781515f601e3a81690dfc1ee5bcc5c3 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 16 Jan 2024 20:28:46 +0400 Subject: Add live-reload to libinput settings --- src/input.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/input.rs') diff --git a/src/input.rs b/src/input.rs index 0eb90c76..293bda93 100644 --- a/src/input.rs +++ b/src/input.rs @@ -89,6 +89,7 @@ impl State { match event { InputEvent::DeviceAdded { device } => { + self.niri.devices.insert(device.clone()); if device.has_capability(input::DeviceCapability::TabletTool) { match device.size() { @@ -107,6 +108,7 @@ impl State { } InputEvent::DeviceRemoved { device } => { self.niri.tablets.remove(device); + self.niri.devices.remove(device); } _ => (), } -- cgit