From 4688ad181da14be36e034918580ec0ce5968ffdb Mon Sep 17 00:00:00 2001 From: "arg@10ksloc.org" Date: Thu, 20 Jul 2006 15:07:35 +0200 Subject: made status bar drawing more robust, implemented togglemax and togglemode, works quite well --- event.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'event.c') diff --git a/event.c b/event.c index 2736903..5d7c8a7 100644 --- a/event.c +++ b/event.c @@ -40,8 +40,8 @@ static Key key[] = { { MODKEY, XK_3, view, { .i = Twork } }, { MODKEY, XK_j, focusnext, { 0 } }, { MODKEY, XK_k, focusprev, { 0 } }, - { MODKEY, XK_m, maximize, { 0 } }, - { MODKEY, XK_space, dotile, { 0 } }, + { MODKEY, XK_m, togglemax, { 0 } }, + { MODKEY, XK_space, togglemode, { 0 } }, { MODKEY, XK_Return, zoom, { 0 } }, { ControlMask|ShiftMask,XK_0, heretag, { .i = Tscratch } }, { ControlMask|ShiftMask,XK_1, heretag, { .i = Tdev } }, @@ -55,7 +55,6 @@ static Key key[] = { { MODKEY|ShiftMask, XK_g, spawn, { .argv = gimp } }, { MODKEY|ShiftMask, XK_l, spawn, { .argv = xlock } }, { MODKEY|ShiftMask, XK_q, quit, { 0 } }, - { MODKEY|ShiftMask, XK_space, dofloat, { 0 } }, { MODKEY|ShiftMask, XK_w, spawn, { .argv = browse } }, { MODKEY|ShiftMask, XK_Return, spawn, { .argv = term } }, }; @@ -170,11 +169,7 @@ buttonpress(XEvent *e) default: break; case Button1: - if(arrange == dotile && !c->isfloat) { - if((ev->state & ControlMask) && (ev->button == Button1)) - zoom(NULL); - } - else { + if(arrange == dofloat || c->isfloat) { higher(c); movemouse(c); } -- cgit v1.2.3