Skip to content

Commit

Permalink
fix: apply borders correctly on config reload
Browse files Browse the repository at this point in the history
  • Loading branch information
Frewacom committed Jan 2, 2022
1 parent 7b49d57 commit 8fc6140
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dwl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2457,8 +2457,7 @@ reloadconfig(int signal, void *data) {
wl_list_for_each(c, &clients, link) {
if (c->bw > 0)
c->bw = borderpx;
/* TODO: This will also apply borders to clients that did not previously have borders */
resize(c, c->geom.x, c->geom.y, c->geom.width, c->geom.height, 0, 1);
resize(c, c->geom.x, c->geom.y, c->geom.width, c->geom.height, 0, c->bw);
}

/* Rearrange clients on all monitors */
Expand Down

0 comments on commit 8fc6140

Please sign in to comment.