evdev: sync the keyboard state when releasing and reclaiming devices
evdev: sync the keyboard state when releasing and reclaiming devices

When we release a device, we lose all the events after that point,
so our state can become stale. Similarly, we need to sync the
state with the effectively pressed keys when we reclaim.
This ensures that modifier keys don't get stuck when switching
VTs using a keybinding.

https://bugzilla.gnome.org/show_bug.cgi?id=706494

djdeath/clutter,ebassi/clutter,jigpu/clutter,djdeath/clutter,ebassi/clutter,Distrotech/clutter,ebassi/clutter,djdeath/clutter,jigpu/clutter,djdeath/clutter,djdeath/clutter,jigpu/clutter,Distrotech/clutter,GNOME/clutter,Distrotech/clutter,GNOME/clutter,GNOME/clutter,GNOME/clutter,ebassi/clutter,ebassi/clutter,Distrotech/clutter,jigpu/clutter,djdeath/clutter,GNOME/clutter,Distrotech/clutter,jigpu/clutter,jigpu/clutter,Distrotech/clutter