mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-02 09:01:43 -05:00
opt: no change size in no_border_when_single when smartgas disable
This commit is contained in:
parent
83b29a74cd
commit
a0f3715a16
2 changed files with 13 additions and 5 deletions
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue