opt: only restore border when client is visible

This commit is contained in:
DreamMaoMao 2025-05-12 20:51:28 +08:00
parent 607a0d63c1
commit 83b29a74cd

View file

@ -1081,7 +1081,7 @@ void apply_border(Client *c, struct wlr_box clip_box, int offsetx,
if(hit_no_border) { if(hit_no_border) {
c->bw = 0; c->bw = 0;
} else if(!c->isfullscreen) { } else if(!c->isfullscreen && VISIBLEON(c, c->mon)) {
c->bw = borderpx; c->bw = borderpx;
} }