mirror of
https://github.com/dylanaraps/sowm.git
synced 2026-11-14 19:03:40 +00:00
sowm: fix focus
This commit is contained in:
1 parent
7d3636e995
commit
85ac75583f
1 file changed
+8
-1
@@ -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