+ if (action == Action::toggleGrabs && _current != _head) {
+ // the toggleGrabs key can only be set up as a root key, since if
+ // it was a chain key, we'd have to not ungrab the whole chain up
+ // to that key. which kinda defeats the purpose of this function.
+ return;
+ }
+
+ KeySym sym = XStringToKeysym(key.c_str());