]> Dogcows Code - chaz/openbox/blobdiff - util/epist/actions.cc
allow modifierless root keys
[chaz/openbox] / util / epist / actions.cc
index 82e61ae3fdd14854f027700c6f6c1146f3653caf..7a895be75e957ea5e74ab1a516850bcd3932f839 100644 (file)
@@ -43,9 +43,10 @@ Action::Action(enum ActionType type, KeyCode keycode, unsigned int modifierMask,
       return;
     }
   }
-  
   _numberParam = atoi( str.c_str() );
 
-  if (type == changeWorkspace)
-    _numberParam;
+  // workspace 1 to the user is workspace 0 to us
+  if (type == changeWorkspace || type == sendToWorkspace)
+    _numberParam--;
 }
This page took 0.019856 seconds and 4 git commands to generate.