From f754eb0ea4de43f4d99861e4c8311f7a57b87a11 Mon Sep 17 00:00:00 2001 From: Scott Moynes Date: Sun, 21 Jul 2002 22:34:38 +0000 Subject: [PATCH] Handle all combinations of the lock modifiers on a keypress. This should be a rc file option once we have one. --- util/epist/epist.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/util/epist/epist.cc b/util/epist/epist.cc index 6d122807..a97b1f77 100644 --- a/util/epist/epist.cc +++ b/util/epist/epist.cc @@ -58,7 +58,7 @@ using std::string; epist::epist(char **argv, char *dpy_name, char *rc_file) : BaseDisplay(argv[0], dpy_name) { - + _argv = argv; if (rc_file) @@ -227,8 +227,7 @@ void epist::activateGrabs() { ActionList::const_iterator ait, end = _actions.end(); for(ait = _actions.begin(); ait != end; ++ait) { - XGrabKey(getXDisplay(), ait->keycode(), ait->modifierMask(), - (*scrit)->rootWindow(), False, GrabModeAsync, GrabModeAsync); + (*scrit)->grabKey(ait->keycode(), ait->modifierMask()); } } } -- 2.45.2