+// XGrabKey(_epist->getXDisplay(), XKeysymToKeycode(_epist->getXDisplay(),
+// XStringToKeysym("F5")),
+// Mod1Mask, _root, True, GrabModeAsync, GrabModeAsync);
+
+void epist::activateGrabs() {
+
+ ScreenList::const_iterator scrit, scrend = _screens.end();
+
+ for (scrit = _screens.begin(); scrit != scrend; ++scrit) {
+ ActionList::const_iterator end = _actions.end();
+
+ for(ActionList::const_iterator ait = _actions.begin();
+ ait != end; ++ait) {
+ XGrabKey(getXDisplay(), ait->keycode(), ait->modifierMask(),
+ (*scrit)->rootWindow(), True, GrabModeAsync, GrabModeAsync);
+ }
+ }
+}
+
+