~ruther/dwl

3470344d844473a4ba5d5115a23bb7e9f44f9ddf — Rutherther 1 year, 2 months ago e9371f8 + 325f75a
Merge remote-tracking branch 'origin/ipc-compat' into v0.6-a/patched-base
1 files changed, 8 insertions(+), 10 deletions(-)

M dwl.c
M dwl.c => dwl.c +8 -10
@@ 1661,15 1661,13 @@ dwl_ipc_output_set_layout(struct wl_client *client, struct wl_resource *resource
	if (!ipc_output)
		return;

	monitor = ipc_output->mon;
	if (index >= LENGTH(layouts))
		return;
	if (index != monitor->lt[monitor->sellt] - layouts)
		monitor->sellt ^= 1;

	monitor->lt[monitor->sellt] = &layouts[index];
	arrange(monitor);
	printstatus();
	monitor = selmon;
	selmon = ipc_output->mon;
	setlayout(&(Arg){.v = &layouts[index]});
	selmon = monitor;
}

void


@@ 1689,10 1687,10 @@ dwl_ipc_output_set_tags(struct wl_client *client, struct wl_resource *resource, 
	if (toggle_tagset)
		monitor->seltags ^= 1;

	monitor->tagset[monitor->seltags] = newtags;
	focusclient(focustop(monitor), 1);
	arrange(monitor);
	printstatus();
	monitor = selmon;
	selmon = ipc_output->mon;
	view(&(Arg){.ui = newtags});
	selmon = monitor;
}

void

Do not follow this link