opt: no change size in no_border_when_single when smartgas disable
This commit is contained in:
10
src/maomao.c
10
src/maomao.c
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user