Handle all combinations of the lock modifiers on a keypress.

This should be a rc file option once we have one.
This commit is contained in:
Scott Moynes 2002-07-21 22:34:38 +00:00
parent 296c12c036
commit f754eb0ea4

View file

@ -58,7 +58,7 @@ using std::string;
epist::epist(char **argv, char *dpy_name, char *rc_file) epist::epist(char **argv, char *dpy_name, char *rc_file)
: BaseDisplay(argv[0], dpy_name) { : BaseDisplay(argv[0], dpy_name) {
_argv = argv; _argv = argv;
if (rc_file) if (rc_file)
@ -227,8 +227,7 @@ void epist::activateGrabs() {
ActionList::const_iterator ait, end = _actions.end(); ActionList::const_iterator ait, end = _actions.end();
for(ait = _actions.begin(); ait != end; ++ait) { for(ait = _actions.begin(); ait != end; ++ait) {
XGrabKey(getXDisplay(), ait->keycode(), ait->modifierMask(), (*scrit)->grabKey(ait->keycode(), ait->modifierMask());
(*scrit)->rootWindow(), False, GrabModeAsync, GrabModeAsync);
} }
} }
} }