Generate a ClientFocus event on focus_area

This commit is contained in:
Kris Maglione 2007-02-12 17:11:54 -05:00
parent b62b14901c
commit 7e317d31c1
2 changed files with 4 additions and 1 deletions

2
area.c
View File

@ -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);
}
}

View File

@ -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)