~ruther/dwl

0f207a834002608e5dcab509f8e3533c2324c1f7 — Rutherther 8 months ago 49d428b
Fix ghost tag usage
1 files changed, 6 insertions(+), 0 deletions(-)

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


@@ 2960,6 2963,9 @@ 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