From c641c916398e9b9368c59ef7052d88ba40c9ee5f Mon Sep 17 00:00:00 2001 From: todd Date: Tue, 13 Nov 2007 23:08:49 +0000 Subject: enable pointer movement in cwm via C- looked over by oga@ --- conf.c | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'conf.c') diff --git a/conf.c b/conf.c index eb40dbc..0192884 100644 --- a/conf.c +++ b/conf.c @@ -4,7 +4,7 @@ * Copyright (c) 2004 Marius Aamodt Eriksen * All rights reserved. * - * $Id: conf.c,v 1.10 2007/11/07 22:00:26 oga Exp $ + * $Id: conf.c,v 1.11 2007/11/13 23:08:49 todd Exp $ */ #include "headers.h" @@ -282,6 +282,26 @@ conf_setup(struct conf *c) conf_bindkey(c, kbfunc_client_resize, XK_H, ControlMask|Mod1Mask, KBFLAG_NEEDCLIENT, (void *)(CWM_LEFT|CWM_BIGMOVE)); + conf_bindkey(c, kbfunc_ptrmove, + XK_Up, ControlMask, 0, (void *)CWM_UP); + conf_bindkey(c, kbfunc_ptrmove, + XK_Down, ControlMask, 0, (void *)CWM_DOWN); + conf_bindkey(c, kbfunc_ptrmove, + XK_Right, ControlMask, 0, (void *)CWM_RIGHT); + conf_bindkey(c, kbfunc_ptrmove, + XK_Left, ControlMask, 0, (void *)CWM_LEFT); + conf_bindkey(c, kbfunc_ptrmove, + XK_Up, ControlMask|ShiftMask, 0, + (void *)(CWM_UP|CWM_BIGMOVE)); + conf_bindkey(c, kbfunc_ptrmove, + XK_Left, ControlMask|ShiftMask, 0, + (void *)(CWM_LEFT|CWM_BIGMOVE)); + conf_bindkey(c, kbfunc_ptrmove, + XK_Right, ControlMask|ShiftMask, 0, + (void *)(CWM_RIGHT|CWM_BIGMOVE)); + conf_bindkey(c, kbfunc_ptrmove, + XK_Down, ControlMask|ShiftMask, 0, + (void *)(CWM_DOWN|CWM_BIGMOVE)); } snprintf(dir_settings, sizeof(dir_settings), @@ -392,6 +412,14 @@ struct { { "rcycle", kbfunc_client_rcycle, KBFLAG_NEEDCLIENT, 0 }, { "label", kbfunc_client_label, KBFLAG_NEEDCLIENT, 0 }, { "delete", kbfunc_client_delete, KBFLAG_NEEDCLIENT, 0 }, + { "ptru", kbfunc_ptrmove, 0, (void *)CWM_UP }, + { "ptrd", kbfunc_ptrmove, 0, (void *)CWM_DOWN }, + { "ptrl", kbfunc_ptrmove, 0, (void *)CWM_LEFT }, + { "ptrr", kbfunc_ptrmove, 0, (void *)CWM_RIGHT }, + { "bigptru", kbfunc_ptrmove, 0, (void *)(CWM_UP|CWM_BIGMOVE) }, + { "bigptrd", kbfunc_ptrmove, 0, (void *)(CWM_DOWN|CWM_BIGMOVE) }, + { "bigptrl", kbfunc_ptrmove, 0, (void *)(CWM_LEFT|CWM_BIGMOVE) }, + { "bigptrr", kbfunc_ptrmove, 0, (void *)(CWM_RIGHT|CWM_BIGMOVE) }, { "groupselect", kbfunc_client_groupselect, 0, 0 }, { "group1", kbfunc_client_group, 0, (void *)1 }, { "group2", kbfunc_client_group, 0, (void *)2 }, -- cgit v1.2.3-2-gb3c3