simplify fullscreen expression

This commit is contained in:
Devin J. Pohly 2021-09-08 23:16:56 -05:00
parent 2e9c4d8ea9
commit 0c1e621b82

2
dwl.c
View File

@ -1025,7 +1025,7 @@ void
setfullscreen(Client *c, int fullscreen) setfullscreen(Client *c, int fullscreen)
{ {
c->isfullscreen = fullscreen; c->isfullscreen = fullscreen;
c->bw = (1 - fullscreen) * borderpx; c->bw = fullscreen ? 0 : borderpx;
client_set_fullscreen(c, fullscreen); client_set_fullscreen(c, fullscreen);
if (fullscreen) { if (fullscreen) {