mirror of
https://github.com/dylanaraps/sowm.git
synced 2026-10-01 05:25:23 +07:00
sowm: fix focus
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user