spice-widget: Don't change usbredir/automount settings while redirecting
authorHans de Goede <hdegoede@redhat.com>
Mon, 25 Jun 2012 15:04:44 +0000 (17:04 +0200)
committerHans de Goede <hdegoede@redhat.com>
Fri, 6 Jul 2012 07:27:42 +0000 (09:27 +0200)
commit2157ea0bf87989ccc29814aece3fa7f434f25840
treee7aae9ea6a9f1a09663a3b2e13cdae41903823d3
parentc64a959722dcec76e7988f505b0e8f051e10aff0
spice-widget: Don't change usbredir/automount settings while redirecting

The keyboard focus may change while usb-device-manager is in the process of
redirecting a usb-device (as this may show a policykit dialog). Making
autoredir/automount setting changes while this is happening is not a good idea!

Since usb-device-manager already sets keyboard_grab_inhibit when it is
redirecting to allow the policykit dialog to show, we can use that to
inhibit usb-autoredir setting changes.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
gtk/spice-widget.c