From 15a148c5ffa21efac1a69cf55c8916a767799625 Mon Sep 17 00:00:00 2001 From: Joshua Ervin Date: Sat, 7 May 2022 22:44:29 -0700 Subject: [PATCH] Persist deocrations on workspace switch --- wm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wm.c b/wm.c index c1e26bc..f17f54c 100644 --- a/wm.c +++ b/wm.c @@ -424,9 +424,6 @@ client_delete(struct client *c) LOGP("Deleting client on workspace %d", ws); } - /* Prevent BadDrawable error which sometimes occurs as a window is closed */ - client_decorations_destroy(c); - /* Delete in the stack */ if (c_list[ws] == c) { c_list[ws] = c_list[ws]->next; @@ -834,7 +831,7 @@ handle_unmap_notify(XEvent *e) LOGN("Client found while unmapping, focusing next client"); focus_best(c); if (c->decorated) - XDestroyWindow(display, c->dec); + client_decorations_destroy(c); client_delete(c); free(c); client_raise(f_client);