X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=util%2Fepist%2Factions.cc;h=7a895be75e957ea5e74ab1a516850bcd3932f839;hb=7d72843f3af282038632492155a0baf011044053;hp=82e61ae3fdd14854f027700c6f6c1146f3653caf;hpb=6d40002093a5d8e665d4f310ea028d22e93e88cb;p=chaz%2Fopenbox diff --git a/util/epist/actions.cc b/util/epist/actions.cc index 82e61ae3..7a895be7 100644 --- a/util/epist/actions.cc +++ b/util/epist/actions.cc @@ -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--; }