From 943b4fd82a7f5164fa792c65ec8da787296012e0 Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Sat, 6 Mar 2021 00:19:56 -0500 Subject: [PATCH] event.c: only shuffle when we delete, not on all destroy events --- event.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/event.c b/event.c index 6e7f6e2..1c4f214 100644 --- a/event.c +++ b/event.c @@ -292,23 +292,23 @@ void newwindow(XCreateWindowEvent* e) { void destroy(Window w) { int i; Client* c; - int v; +// int v; curtime = CurrentTime; c = getclient(w, 0); if (c == 0) return; - v = c->virt; +// v = c->virt; if (numvirtuals > 1) for (i = 0; i < numvirtuals; i++) if (currents[i] == c) currents[i] = 0; rmclient(c); - if (v == virt) { - shuffle(0); - } + //if (v == virt) { + // shuffle(0); + //} /* flush any errors generated by the window's sudden demise */ ignore_badwindow = 1;