How about this alternative approach? It introduces a new central keyboard monitor object which can keep the registered input channels in sync with the client keyboard state. This object has an 'override-guest-modifiers' property which controls whether it will connect to the 'inputs-modifiers' signal on the inputs channels and override detected changes on the guest with the current state of the client modifiers. This is the core functionality introduced by the previous patch, but it is done here in a way that guarantees that the signal handler is only triggered once. This property is enabled by default. [PATCH 1/2] Ensure keyboard modifiers are synchronized properly [PATCH 2/2] Use GdkKeymap to listen for keyboard modifier changes _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel