sowm: fix focus

This commit is contained in:
Dylan Araps
2019-10-12 12:48:50 +03:00
parent 7d3636e995
commit 85ac75583f
+8 -1
View File
@@ -226,7 +226,14 @@ void win_update() {
}
void notify_enter(XEvent *e) {
XSetInputFocus(dis, e->xcrossing.window, RevertToParent, CurrentTime);
client *c;
for (c=head;c;c=c->next)
if (e->xcrossing.window == c->win)
cur = c;
if (cur != NULL && head != NULL)
win_update();
}
void key_grab() {