Skip to content

Commit

Permalink
Persist deocrations on workspace switch
Browse files Browse the repository at this point in the history
  • Loading branch information
JLErvin committed May 8, 2022
1 parent b563041 commit 15a148c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions wm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 15a148c

Please sign in to comment.