Skip to content

Commit

Permalink
Merge pull request #184 from JLErvin/persist-decorations-on-ws-switch
Browse files Browse the repository at this point in the history
Persist decorations on workspace send
  • Loading branch information
JLErvin authored Oct 24, 2022
2 parents 64100fa + 15a148c commit e5bcb3f
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 @@ -835,7 +832,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 e5bcb3f

Please sign in to comment.