diff options
author | okan <okan> | 2011-07-23 13:09:11 +0000 |
---|---|---|
committer | okan <okan> | 2011-07-23 13:09:11 +0000 |
commit | 69ac0624cc07ffc8df11287a8827b42773371b0e (patch) | |
tree | 18d6f6f1548820aacf4b673a948860cb157b98d2 /kbfunc.c | |
parent | c585dfbf32b69daa483ad129cc2349ce26102dec (diff) | |
download | cwm-69ac0624cc07ffc8df11287a8827b42773371b0e.tar.gz cwm-69ac0624cc07ffc8df11287a8827b42773371b0e.tar.xz cwm-69ac0624cc07ffc8df11287a8827b42773371b0e.zip |
Clarify defines and make them not look like non-local ones; started by a
small diff from Thomas Pfaff. ok oga@
Diffstat (limited to 'kbfunc.c')
-rw-r--r-- | kbfunc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kbfunc.c b/kbfunc.c index 2946173..7ad8903 100644 --- a/kbfunc.c +++ b/kbfunc.c @@ -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) |