opt: no change size in no_border_when_single when smartgas disable

This commit is contained in:
DreamMaoMao 2025-05-12 21:38:24 +08:00
parent 83b29a74cd
commit a0f3715a16
2 changed files with 13 additions and 5 deletions

View file

@ -1079,8 +1079,16 @@ void apply_border(Client *c, struct wlr_box clip_box, int offsetx,
hit_no_border = true;
}
if(hit_no_border) {
if(hit_no_border && smartgaps) {
c->bw = 0;
} else if (hit_no_border && !smartgaps) {
set_rect_size(c->border[0], 0, 0);
set_rect_size(c->border[1], 0, 0);
set_rect_size(c->border[2], 0, 0);
set_rect_size(c->border[3], 0, 0);
wlr_scene_node_set_position(&c->scene_surface->node, c->bw, c->bw);
return;
} else if(!c->isfullscreen && VISIBLEON(c, c->mon)) {
c->bw = borderpx;
}