commit f4f492efd89c2a19b3337a9c9ebd2b073008e1de
parent e99f8a8a583ef34e2f01756fda4cd03907122ae3
Author: Kris Maglione <jg@suckless.org>
Date: Mon, 29 Sep 2008 11:10:54 -0400
Fix input hint, among other things.
Diffstat:
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/cmd/wmii/area.c b/cmd/wmii/area.c
@@ -254,6 +254,8 @@ area_focus(Area *a) {
v->sel = a;
if(!a->floating)
v->selcol = area_idx(a);
+ if(a != old_a)
+ v->oldsel = nil;
if((old_a) && (a->floating != old_a->floating)) {
v->revert = old_a;
diff --git a/cmd/wmii/client.c b/cmd/wmii/client.c
@@ -779,7 +779,7 @@ client_prop(Client *c, Atom a) {
case XA_WM_HINTS:
wmh = XGetWMHints(display, c->w.w);
if(wmh) {
- c->noinput = !((wmh->flags&InputFocus) && wmh->input);
+ c->noinput = (wmh->flags&InputFocus) && !wmh->input;
client_seturgent(c, (wmh->flags & XUrgencyHint) != 0, UrgClient);
XFree(wmh);
}
diff --git a/cmd/wmii/frame.c b/cmd/wmii/frame.c
@@ -506,7 +506,7 @@ frame_draw(Frame *f) {
/* Draw inner border on floating clients. */
if(f->area->floating) {
r.min.x = r.min.x + w + 10;
- r.max.x = f->titlebar.max.x + 1;
+ r.max.x += Dx(f->grabbox) - 2;
r.min.y = f->grabbox.min.y;
r.max.y = f->grabbox.max.y;
border(img, r, 1, col->border);