spice-gtk-session: Only update usb "auto-connect" when doing "auto-usb-redir"
authorHans de Goede <hdegoede@redhat.com>
Wed, 13 Jun 2012 13:54:44 +0000 (15:54 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 26 Jun 2012 08:23:12 +0000 (10:23 +0200)
commitcf168467becc342489a954c5fef5b1e9c646e520
tree4a3aa43a015688fc25d41dab1c13c54ad3e96193
parent713f52e04d479b9a7d7b3a893950c8b35b390da2
spice-gtk-session: Only update usb "auto-connect" when doing "auto-usb-redir"

Only update the UsbDeviceManager's "auto-connect" property when
"auto-usb-redir" is set, otherwise leave it as is. This allows apps to
control UsbDeviceManager's "auto-connect" directly, without it getting reset
on every keyboard focus change.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
gtk/spice-gtk-session.c
gtk/usb-device-manager.c