Fix input hint, among other things.

This commit is contained in:
Kris Maglione 2008-09-29 11:10:54 -04:00
parent e99f8a8a58
commit f4f492efd8
3 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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);
}

View File

@ -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);