X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=util%2Fepist%2Factions.cc;h=e37ff2470602338e445b40ed65d9dac5510e61cc;hb=f1b9e2168d8c1b03b0fcf0b6dd70aa46c513059d;hp=afe33e3575e1ce230f29822419448a5edabc330f;hpb=4c10947be5885d977a252d6300f4cb2b5646d8ec;p=chaz%2Fopenbox diff --git a/util/epist/actions.cc b/util/epist/actions.cc index afe33e35..e37ff247 100644 --- a/util/epist/actions.cc +++ b/util/epist/actions.cc @@ -1,5 +1,5 @@ // -*- mode: C++; indent-tabs-mode: nil; -*- -// actions.cc for Epistophy - a key handler for NETWM/EWMH window managers. +// actions.cc for Epistrophy - a key handler for NETWM/EWMH window managers. // Copyright (c) 2002 - 2002 Ben Jansens // // Permission is hereby granted, free of charge, to any person obtaining a @@ -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--; }