mirror of
https://github.com/0intro/wmii
synced 2024-11-21 21:31:33 +03:00
Fix extra ClientFocus events. Closes issue #182.
This commit is contained in:
parent
9603f048d5
commit
3550e7afef
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user