From 31589b5e94b0f1a397c4131d8f1ff1186595a60d Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 13 Oct 2019 17:57:24 +0300 Subject: [PATCH] docs: update --- sowm.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sowm.c b/sowm.c index 87b379e..1f6eb84 100644 --- a/sowm.c +++ b/sowm.c @@ -88,6 +88,8 @@ static void (*events[LASTEvent])(XEvent *e) = { void notify_destroy(XEvent *e) { win_del(e->xdestroywindow.window); + + if (list) XSetInputFocus(dis, list->win, RevertToParent, CurrentTime); } void notify_enter(XEvent *e) { @@ -208,12 +210,7 @@ void win_del(Window w) { void win_kill() { Window cur = win_current(); - if (cur != root) { - XKillClient(dis, cur); - win_del(cur); - - if (list) XSetInputFocus(dis, list->win, RevertToParent, CurrentTime); - } + if (cur != root) XKillClient(dis, cur); } void win_center(Window w) {