Avoid monitoring xremap virtual device

When a device is removed, xremap re-selects devices. Now since xremap is
already running and the virtual device already exists, we need to filter
it out from the new device list.
pull/140/head
Frederick Zhang 2 years ago
parent 8770711b17
commit a7056394f5
No known key found for this signature in database
GPG Key ID: 980A192C361BE1AE

@ -194,6 +194,9 @@ impl InputDevice {
impl InputDevice {
pub fn is_input_device(&self, device_filter: &[String], ignore_filter: &[String], mouse: bool) -> bool {
if self.device_name() == Self::current_name() {
return false;
}
(if device_filter.is_empty() {
self.is_keyboard() || (mouse && self.is_mouse())
} else {

Loading…
Cancel
Save