diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2011-07-23 13:09:12 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2011-07-23 13:09:12 +0000 |
commit | d1c54fd892ab7ed02443d2af0b01936b425d7e2c (patch) | |
tree | 16003aee9205d3f5d0b730e6fc624c3f4daceeea /app/cwm/kbfunc.c | |
parent | 4abd34a9309217c0cb3ae194e5abf740a19a79cc (diff) |
Clarify defines and make them not look like non-local ones; started by a
small diff from Thomas Pfaff.
ok oga@
Diffstat (limited to 'app/cwm/kbfunc.c')
-rw-r--r-- | app/cwm/kbfunc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/cwm/kbfunc.c b/app/cwm/kbfunc.c index d0b278ade..ba34a77e5 100644 --- a/app/cwm/kbfunc.c +++ b/app/cwm/kbfunc.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: kbfunc.c,v 1.55 2011/06/24 06:06:24 okan Exp $ + * $OpenBSD: kbfunc.c,v 1.56 2011/07/23 13:09:11 okan Exp $ */ #include <sys/param.h> @@ -49,8 +49,8 @@ kbfunc_client_raise(struct client_ctx *cc, union arg *arg) client_raise(cc); } -#define typemask (CWM_MOVE | CWM_RESIZE | CWM_PTRMOVE) -#define movemask (CWM_UP | CWM_DOWN | CWM_LEFT | CWM_RIGHT) +#define TYPEMASK (CWM_MOVE | CWM_RESIZE | CWM_PTRMOVE) +#define MOVEMASK (CWM_UP | CWM_DOWN | CWM_LEFT | CWM_RIGHT) void kbfunc_moveresize(struct client_ctx *cc, union arg *arg) { @@ -72,7 +72,7 @@ kbfunc_moveresize(struct client_ctx *cc, union arg *arg) amt = amt * 10; } - switch (flags & movemask) { + switch (flags & MOVEMASK) { case CWM_UP: my -= amt; break; @@ -86,7 +86,7 @@ kbfunc_moveresize(struct client_ctx *cc, union arg *arg) mx -= amt; break; } - switch (flags & typemask) { + switch (flags & TYPEMASK) { case CWM_MOVE: cc->geom.y += my; if (cc->geom.y + cc->geom.height < 0) |