From 53ad4b0c6c4cb85bd334ddb6bc2b943b4554c358 Mon Sep 17 00:00:00 2001 From: hudeng Date: Mon, 11 Dec 2017 08:42:16 +0000 Subject: [PATCH] fix bug of keyboard\mouse hotplug error --- src/usb-device-manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/usb-device-manager.c b/src/usb-device-manager.c index efb7454..a93777a 100644 --- a/src/usb-device-manager.c +++ b/src/usb-device-manager.c @@ -2186,7 +2186,7 @@ void _usbdk_hider_update(SpiceUsbDeviceManager *manager) g_return_if_fail(!priv->use_usbclerk); - if (priv->auto_connect_filter == NULL) { + if (priv->redirect_on_connect == NULL) { SPICE_DEBUG("No autoredirect rules, no hider setup needed"); _usbdk_hider_clear(manager); return; @@ -2201,7 +2201,7 @@ void _usbdk_hider_update(SpiceUsbDeviceManager *manager) if(_usbdk_hider_prepare(manager)) { usbdk_api_set_hide_rules(priv->usbdk_api, priv->usbdk_hider_handle, - priv->auto_connect_filter); + priv->redirect_on_connect); } } -- 2.13.6