X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=util%2Fepist%2Factions.cc;h=7a895be75e957ea5e74ab1a516850bcd3932f839;hb=652addd232e3f2a7c6c681b9669917e0a416331f;hp=afe33e3575e1ce230f29822419448a5edabc330f;hpb=4c10947be5885d977a252d6300f4cb2b5646d8ec;p=chaz%2Fopenbox diff --git a/util/epist/actions.cc b/util/epist/actions.cc index afe33e35..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) // workspace 1 to the user is workspace 0 to us + // workspace 1 to the user is workspace 0 to us + if (type == changeWorkspace || type == sendToWorkspace) _numberParam--; }