diff options
Diffstat (limited to 'src/input.rs')
| -rw-r--r-- | src/input.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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); } _ => (), } |
