From 83b29a74cd3ee927c82d14307118df532a32bb8e Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Mon, 12 May 2025 20:51:28 +0800 Subject: [PATCH] opt: only restore border when client is visible --- src/maomao.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/maomao.c b/src/maomao.c index c737b42..1c8301b 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -1081,7 +1081,7 @@ void apply_border(Client *c, struct wlr_box clip_box, int offsetx, if(hit_no_border) { c->bw = 0; - } else if(!c->isfullscreen) { + } else if(!c->isfullscreen && VISIBLEON(c, c->mon)) { c->bw = borderpx; }