~ruther/dwl

7a39d7b211bc45578369e466cee07e581c9d904b — Rutherther 10 months ago b33befd
fix: disabled monitor no tagsset
1 files changed, 7 insertions(+), 0 deletions(-)

M dwl.c
M dwl.c => dwl.c +7 -0
@@ 981,6 981,9 @@ closemon(Monitor *m)
		if (c->mon == m)
			setmon(c, selmon, c->tags);
	}

	m->tagset[0] = m->tagset[1] = 0;

	focusclient(focustop(selmon), 1);
	printstatus();
}


@@ 3643,6 3646,10 @@ updatemons(struct wl_listener *listener, void *data)
			continue;
		config_head = wlr_output_configuration_head_v1_create(config, m->wlr_output);

		if ((m->tagset[0] & TAGMASK) == 0 && (m->tagset[1] & TAGMASK) == 0) {
			m->tagset[0] = m->tagset[1] = (1<<getunusedtag()) & TAGMASK;
		}

		/* Get the effective monitor geometry to use for surfaces */
		wlr_output_layout_get_box(output_layout, m->wlr_output, &m->m);
		m->w = m->m;

Do not follow this link