From 27fafaf963bf5607d357306e89accab0a81277bc Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 12 Oct 2019 21:22:01 +0300 Subject: [PATCH] sowm: simpler delete --- sowm.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/sowm.c b/sowm.c index 59171c1..b37023a 100644 --- a/sowm.c +++ b/sowm.c @@ -200,18 +200,7 @@ void win_to_ws(const Arg arg) { } void notify_destroy(XEvent *e) { - int i = 0; - client *c; - - XDestroyWindowEvent *ev = &e->xdestroywindow; - - for WIN - if(ev->window == c->win) i++; - - if (i == 0) - return; - - win_del(ev->window); + win_del(e->xdestroywindow.window); } void configure_request(XEvent *e) {