XIAllMasterDevices doesn't quite work for key grabs, so only do this at the moment for the Virtual Core Keyboard