changeset: 2672:ebaaa575a7c4
tag: tip
user: Kris Maglione <kris_AT_suckless.org>
date: Sat May 29 11:54:38 2010 -0400
files: cmd/wmii/area.c cmd/wmii/float.c
description:
Try harder not to focus doc windows.
diff -r e6546cde2d67 -r ebaaa575a7c4 cmd/wmii/area.c
--- a/cmd/wmii/area.c Sat May 29 11:38:35 2010 -0400
+++ b/cmd/wmii/area.c Sat May 29 11:54:38 2010 -0400
@@ -273,6 +273,7 @@
column_detach(f);
if(v->sel->sel == nil && v->floating->sel)
+ if(v->floating->sel->client->nofocus)
v->sel = v->floating;
view_arrange(v);
diff -r e6546cde2d67 -r ebaaa575a7c4 cmd/wmii/float.c
--- a/cmd/wmii/float.c Sat May 29 11:38:35 2010 -0400
+++ b/cmd/wmii/float.c Sat May 29 11:54:38 2010 -0400
@@ -36,8 +36,11 @@
frame_remove(f);
if(a->sel == f) {
+ while(pr && pr->client->nofocus)
+ pr = pr->aprev;
if(!pr)
- pr = a->frame;
+ for(pr=a->frame; pr && pr->anext; pr=pr->anext)
+ if(!pr->client->nofocus) break;
a->sel = nil;
area_setsel(a, pr);
}
@@ -45,7 +48,7 @@
if(oldsel)
area_focus(oldsel);
- else if(!a->frame)
+ else if(!a->frame || pr && pr->client->nofocus)
if(sel && sel->frame)
area_focus(sel);
}
Received on Sat May 29 2010 - 15:54:46 UTC
This archive was generated by hypermail 2.2.0 : Sat May 29 2010 - 16:00:08 UTC