The ::device-removed signal is emitted either when a master pointer is removed, or when a slave (Hardware) input device is unplugged.
See Implementation
The ::device-removed signal is emitted either when a master pointer is removed, or when a slave (Hardware) input device is unplugged.