changeset: 1857:a1afb8c633cc
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Mon Feb 12 17:11:54 2007 -0500
summary: Generate a ClientFocus event on focus_area
diff -r f3b3c4f379eb -r a1afb8c633cc area.c
--- a/area.c Mon Feb 12 15:33:19 2007 -0500
+++ b/area.c Mon Feb 12 17:11:54 2007 -0500
@@ -349,6 +349,8 @@ focus_area(Area *a) {
write_event("ColumnFocus %d\n", i);
else
write_event("FocusFloating\n");
+ if(a->frame)
+ write_event("ClientFocus 0x%x\n", a->sel->client->win);
}
}
diff -r f3b3c4f379eb -r a1afb8c633cc frame.c
--- a/frame.c Mon Feb 12 15:33:19 2007 -0500
+++ b/frame.c Mon Feb 12 17:11:54 2007 -0500
@@ -190,7 +190,8 @@ focus_frame(Frame *f, Bool restack) {
if(f != old) {
if(old)
draw_frame(old);
- write_event("ClientFocus 0x%x\n", f->client->win);
+ if(f->area == old_a)
+ write_event("ClientFocus 0x%x\n", f->client->win);
}
if(restack)
Received on Mon Feb 12 2007 - 23:12:22 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:14 UTC