[hackers] [wmii] Fix input hint, among other things. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Mon, 29 Sep 2008 15:11:01 +0000 (UTC)

changeset: 2348:8044f5372bf7
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Mon Sep 29 11:10:54 2008 -0400
files: cmd/wmii/area.c cmd/wmii/client.c cmd/wmii/frame.c
description:
Fix input hint, among other things.

diff -r a740669de38d -r 8044f5372bf7 cmd/wmii/area.c
--- a/cmd/wmii/area.c Mon Sep 15 19:30:47 2008 -0400
+++ b/cmd/wmii/area.c Mon Sep 29 11:10:54 2008 -0400
@@ -254,6 +254,8 @@
         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 -r a740669de38d -r 8044f5372bf7 cmd/wmii/client.c
--- a/cmd/wmii/client.c Mon Sep 15 19:30:47 2008 -0400
+++ b/cmd/wmii/client.c Mon Sep 29 11:10:54 2008 -0400
@@ -779,7 +779,7 @@
         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 -r a740669de38d -r 8044f5372bf7 cmd/wmii/frame.c
--- a/cmd/wmii/frame.c Mon Sep 15 19:30:47 2008 -0400
+++ b/cmd/wmii/frame.c Mon Sep 29 11:10:54 2008 -0400
@@ -506,7 +506,7 @@
         /* 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);
Received on Mon Sep 29 2008 - 15:11:01 UTC

This archive was generated by hypermail 2.2.0 : Mon Sep 29 2008 - 15:12:04 UTC