Fix extra ClientFocus events. Closes issue #182.

This commit is contained in:
Kris Maglione 2010-05-21 22:52:10 -04:00
parent 9603f048d5
commit 3550e7afef

View File

@ -519,7 +519,6 @@ client_focus(Client *c) {
} }
}else }else
setfocus(screen->barwin, RevertToParent); setfocus(screen->barwin, RevertToParent);
event("ClientFocus %C\n", c);
sync(); sync();
flushevents(FocusChangeMask, true); flushevents(FocusChangeMask, true);
@ -914,6 +913,7 @@ focusin_event(Window *w, XFocusChangeEvent *e) {
old = disp.focus; old = disp.focus;
disp.focus = c; disp.focus = c;
if(c != old) { if(c != old) {
event("ClientFocus %C\n", c);
if(c->sel) if(c->sel)
frame_draw(c->sel); frame_draw(c->sel);
} }