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