From 7e317d31c1b9a05eeda5447d3c3ba9b88693d961 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Mon, 12 Feb 2007 17:11:54 -0500 Subject: [PATCH] Generate a ClientFocus event on focus_area --- area.c | 2 ++ frame.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/area.c b/area.c index 30150888..c9a81250 100644 --- a/area.c +++ b/area.c @@ -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 --git a/frame.c b/frame.c index 153a0bef..a7f16693 100644 --- a/frame.c +++ b/frame.c @@ -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)