wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit 68f249f726f7c1ac3bb7d7d5c97fb81827cb5e37
parent 918fa1cf9dabdf48a0bbd58748c5b1eda51b4983
Author: Kris Maglione <jg@suckless.org>
Date:   Sat, 24 May 2008 21:12:53 -0400

Fix stupid grow/nudge mistake. (and change an assert to a warning)

Diffstat:
cmd/wmii.rc.rc | 6+++---
cmd/wmii/float.c | 2+-
cmd/wmii/message.c | 10++++++++--
3 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/cmd/wmii.rc.rc b/cmd/wmii.rc.rc @@ -45,8 +45,8 @@ wmiifocuscol=`{wi_readctl focuscolors} fn wi_menu { dmenu -b -fn $wmiifont \ - -nf $wmiinormcol(1) -nb $wmiinormcol(2) \ - -sf $wmiifocuscol(1) -sb $wmiifocuscol(2) + -nf $wmiinormcol(1) -nb $wmiinormcol(2) \ + -sf $wmiifocuscol(1) -sb $wmiifocuscol(2) } fn wi_9menu { @@ -156,7 +156,7 @@ fn wi_eventloop { wi_arg=`{echo $wi_event | sed 's/^[^ ]+ //'}} * = `{echo $wi_event} event = $1; shift - Event-$event $* + Event-$"event $* } >[2]/dev/null </dev/null } diff --git a/cmd/wmii/float.c b/cmd/wmii/float.c @@ -30,7 +30,7 @@ float_detach(Frame *f) { v = f->view; a = f->area; sel = view_findarea(v, v->selcol, false); - assert(sel || !v->area->next); + if(!(sel || !v->area->next)) warning("%s:%d: !(sel || !v->area->next)", __FILE__, __LINE__); pr = f->aprev; frame_remove(f); diff --git a/cmd/wmii/message.c b/cmd/wmii/message.c @@ -652,7 +652,10 @@ msg_grow(View *v, IxpMsg *m) { if(!getamt(m, &amount)) return Ebadvalue; - r = f->colr; + if(f->area->floating) + r = f->r; + else + r = f->colr; switch(dir) { case LLEFT: r.min.x -= amount.x; break; case LRIGHT: r.max.x += amount.x; break; @@ -689,7 +692,10 @@ msg_nudge(View *v, IxpMsg *m) { if(!getamt(m, &amount)) return Ebadvalue; - r = f->colr; + if(f->area->floating) + r = f->r; + else + r = f->colr; switch(dir) { case LLEFT: r = rectaddpt(r, Pt(-amount.x, 0)); break; case LRIGHT: r = rectaddpt(r, Pt( amount.x, 0)); break;