mirror of https://github.com/0intro/wmii
Fix input hint, among other things.
This commit is contained in:
parent
e99f8a8a58
commit
f4f492efd8
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue