From 0c1e621b82fb55b5994ae5ab9956160a47dfec80 Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Wed, 8 Sep 2021 23:16:56 -0500 Subject: simplify fullscreen expression --- dwl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dwl.c') 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) { -- cgit v1.2.3