X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=util%2Fepist%2Fepist.cc;h=3eac87839fde4e8591a791ba4ef09e5436227545;hb=8e601e4a64b37f333fc3a5f844e4d72d6f289415;hp=25f7e62ab9a6e5e6031678528efbe17aec873f76;hpb=8cfa247c3fd0dde18ea5cda42f8e319f01545fd6;p=chaz%2Fopenbox diff --git a/util/epist/epist.cc b/util/epist/epist.cc index 25f7e62a..3eac8783 100644 --- a/util/epist/epist.cc +++ b/util/epist/epist.cc @@ -76,14 +76,18 @@ epist::epist(char **argv, char *dpy_name, char *rc_file) ::exit(1); } - _actions.push_back(Action(Action::nextDesktop, + _actions.push_back(Action(Action::nextWorkspace, XKeysymToKeycode(getXDisplay(), XStringToKeysym("Tab")), Mod1Mask)); - _actions.push_back(Action(Action::prevDesktop, + _actions.push_back(Action(Action::prevWorkspace, XKeysymToKeycode(getXDisplay(), XStringToKeysym("Tab")), ControlMask)); + _actions.push_back(Action(Action::shade, + XKeysymToKeycode(getXDisplay(), + XStringToKeysym("F5")), + Mod1Mask)); activateGrabs(); } @@ -92,22 +96,16 @@ epist::~epist() { delete _xatom; } - -// 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(); + ActionList::const_iterator ait, end = _actions.end(); - for(ActionList::const_iterator ait = _actions.begin(); - ait != end; ++ait) { + for(ait = _actions.begin(); ait != end; ++ait) { XGrabKey(getXDisplay(), ait->keycode(), ait->modifierMask(), - (*scrit)->rootWindow(), True, GrabModeAsync, GrabModeAsync); + (*scrit)->rootWindow(), False, GrabModeAsync, GrabModeAsync); } } }