compress enter events and clean up code

This commit is contained in:
Dylan Araps 2019-10-14 20:53:00 +03:00
parent ca0b54b43a
commit 410c65e51c
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 3 additions and 3 deletions

6
sowm.c
View File

@ -91,6 +91,8 @@ void notify_destroy(XEvent *e) {
}
void notify_enter(XEvent *e) {
while(XCheckTypedEvent(d, EnterNotify, e));
if (e->xcrossing.window != root) FOC(e->xcrossing.window)
}
@ -196,9 +198,7 @@ void win_del(Window w) {
}
void win_kill() {
win_current();
if (cur != root) XKillClient(d, cur);
if (win_current() != root) XKillClient(d, cur);
}
void win_center(Window w) {