mirror of
https://github.com/0intro/wmii
synced 2024-11-22 05:42:05 +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
|
}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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user