summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2021-09-08 23:16:56 -0500
committerDevin J. Pohly <djpohly@gmail.com>2021-09-08 23:21:28 -0500
commit0c1e621b82fb55b5994ae5ab9956160a47dfec80 (patch)
treecff9cfee4796218239ff7ccea4f99bf1be4c50b8
parent2e9c4d8ea90e47667ef4fa417aa3e6f46034699e (diff)
simplify fullscreen expression
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 2c1634b..1951adb 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1025,7 +1025,7 @@ void
setfullscreen(Client *c, int fullscreen)
{
c->isfullscreen = fullscreen;
- c->bw = (1 - fullscreen) * borderpx;
+ c->bw = fullscreen ? 0 : borderpx;
client_set_fullscreen(c, fullscreen);
if (fullscreen) {