fix: fullscrren client shouldn't be effect by other monitor

This commit is contained in:
DreamMaoMao 2025-09-16 10:13:08 +08:00
parent 86d2380eb8
commit c52d203cdc
3 changed files with 30 additions and 8 deletions

View file

@ -138,6 +138,10 @@ void vertical_grid(Monitor *m) {
if (n == 1) {
wl_list_for_each(c, &clients, link) {
if (c->mon != m)
continue;
c->bw = m->visible_tiling_clients == 1 && no_border_when_single &&
smartgaps
? 0
@ -162,6 +166,10 @@ void vertical_grid(Monitor *m) {
cw = (m->w.width - 2 * overviewgappo) * 0.65;
i = 0;
wl_list_for_each(c, &clients, link) {
if (c->mon != m)
continue;
c->bw = m->visible_tiling_clients == 1 && no_border_when_single &&
smartgaps
? 0
@ -207,6 +215,9 @@ void vertical_grid(Monitor *m) {
i = 0;
wl_list_for_each(c, &clients, link) {
if (c->mon != m)
continue;
c->bw =
m->visible_tiling_clients == 1 && no_border_when_single && smartgaps
? 0