diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-16 20:28:46 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-16 20:29:37 +0400 |
| commit | 4656332d0781515f601e3a81690dfc1ee5bcc5c3 (patch) | |
| tree | 1872fd2cf47a8bba0c6a73e9e4138b8327e75266 /src/input.rs | |
| parent | 954f711bf3b4406f260639be29b737749c9dc381 (diff) | |
| download | niri-4656332d0781515f601e3a81690dfc1ee5bcc5c3.tar.gz niri-4656332d0781515f601e3a81690dfc1ee5bcc5c3.tar.bz2 niri-4656332d0781515f601e3a81690dfc1ee5bcc5c3.zip | |
Add live-reload to libinput settings
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); } _ => (), } |
