From 1cebeb1917e2f144081c3dea62073ffe65a6e5d8 Mon Sep 17 00:00:00 2001 From: okan Date: Thu, 12 Nov 2015 18:26:41 +0000 Subject: Move kb pointer movement out of the kbfunc_client_moveresize since it's got nothing to do with clients, thus doing flags work causes lots of waste and almost useless jumpy pointer movements; while here, split out move and resize since they share almost no code, just like mouse client move/resize; factor out amount and factor. Still wonder why this is here, but it works now. --- calmwm.h | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'calmwm.h') diff --git a/calmwm.h b/calmwm.h index 72f6d21..0e4b101 100644 --- a/calmwm.h +++ b/calmwm.h @@ -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: calmwm.h,v 1.309 2015/11/11 14:22:01 okan Exp $ + * $OpenBSD: calmwm.h,v 1.310 2015/11/12 18:26:41 okan Exp $ */ #ifndef _CALMWM_H_ @@ -50,15 +50,13 @@ #define KEYMASK (KeyPressMask | ExposureMask) #define IGNOREMODMASK (LockMask | Mod2Mask | 0x2000) -/* kb movement */ -#define CWM_MOVE 0x0001 -#define CWM_RESIZE 0x0002 -#define CWM_PTRMOVE 0x0004 -#define CWM_BIGMOVE 0x0008 -#define CWM_UP 0x0010 -#define CWM_DOWN 0x0020 -#define CWM_LEFT 0x0040 -#define CWM_RIGHT 0x0080 +/* direction/amount */ +#define CWM_UP 0x0001 +#define CWM_DOWN 0x0002 +#define CWM_LEFT 0x0004 +#define CWM_RIGHT 0x0008 +#define CWM_BIGAMOUNT 0x0010 +#define DIRECTIONMASK (CWM_UP | CWM_DOWN | CWM_LEFT | CWM_RIGHT) #define CWM_CLIENT_CYCLE 0x0001 #define CWM_CLIENT_RCYCLE 0x0002 @@ -475,14 +473,14 @@ void kbfunc_client_grouptoggle(struct client_ctx *, void kbfunc_client_hide(struct client_ctx *, union arg *); void kbfunc_client_label(struct client_ctx *, union arg *); void kbfunc_client_lower(struct client_ctx *, union arg *); -void kbfunc_client_moveresize(struct client_ctx *, - union arg *); +void kbfunc_client_move(struct client_ctx *, union arg *); void kbfunc_client_movetogroup(struct client_ctx *, union arg *); void kbfunc_client_nogroup(struct client_ctx *, union arg *); void kbfunc_client_raise(struct client_ctx *, union arg *); void kbfunc_client_rcycle(struct client_ctx *, union arg *); +void kbfunc_client_resize(struct client_ctx *, union arg *); void kbfunc_client_tile(struct client_ctx *, union arg *); void kbfunc_client_toggle_freeze(struct client_ctx *, union arg *); @@ -505,6 +503,7 @@ void kbfunc_menu_client(struct client_ctx *, union arg *); void kbfunc_menu_cmd(struct client_ctx *, union arg *); void kbfunc_menu_group(struct client_ctx *, union arg *); void kbfunc_menu_ssh(struct client_ctx *, union arg *); +void kbfunc_ptrmove(struct client_ctx *, union arg *); void mousefunc_client_move(struct client_ctx *, union arg *); -- cgit v1.2.3-2-gb3c3