~ruther/dwl

1464c2b2baa76b4f142e9d0e810d035e9b2114dd — Rutherther 10 months ago 47df986 patch/singletagset
fix: disabled monitor no tagsset
1 files changed, 7 insertions(+), 0 deletions(-)

M dwl.c
M dwl.c => dwl.c +7 -0
@@ 779,6 779,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();
}


@@ 2843,6 2846,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