]> Dogcows Code - chaz/openbox/blobdiff - util/epist/epist.cc
make both for's work teh same way
[chaz/openbox] / util / epist / epist.cc
index 6e954aec9a787fd0ae60d0a1347a852d144fd4ca..a9d017928c5148d5e5cdf077d6f222e29e4714cd 100644 (file)
@@ -92,6 +92,7 @@ epist::~epist() {
   delete _xatom;
 }
 
+
 //   XGrabKey(_epist->getXDisplay(), XKeysymToKeycode(_epist->getXDisplay(),
 //                                            XStringToKeysym("F5")),
 //            Mod1Mask, _root, True, GrabModeAsync, GrabModeAsync);
@@ -101,15 +102,16 @@ 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);
     }
   }
 }
+
+
 bool epist::handleSignal(int sig) {
   switch (sig) {
   case SIGHUP:
This page took 0.023557 seconds and 4 git commands to generate.