X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=util%2Fepist%2Factions.cc;h=e37ff2470602338e445b40ed65d9dac5510e61cc;hb=9af4075917c2a02c0cfdbac53da57489b7702af1;hp=82e61ae3fdd14854f027700c6f6c1146f3653caf;hpb=6d40002093a5d8e665d4f310ea028d22e93e88cb;p=chaz%2Fopenbox diff --git a/util/epist/actions.cc b/util/epist/actions.cc index 82e61ae3..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) - _numberParam; + // workspace 1 to the user is workspace 0 to us + if (type == changeWorkspace || type == sendToWorkspace) + _numberParam--; }