~ruther/dwl

9a5f91a3a9b64e97f1049ab34f838f4778604ac6 — Rutherther 10 months ago 6b9ed24
Add output to layout after enabled state is committed
1 files changed, 6 insertions(+), 5 deletions(-)

M dwl.c
M dwl.c => dwl.c +6 -5
@@ 2525,11 2525,6 @@ outputmgrapplyortest(struct wlr_output_configuration_v1 *config, int test)
					config_head->state.custom_mode.height,
					config_head->state.custom_mode.refresh);

		/* Don't move monitors if position wouldn't change, this to avoid
		 * wlroots marking the output as manually configured */
		if (m->m.x != config_head->state.x || m->m.y != config_head->state.y)
			wlr_output_layout_add(output_layout, wlr_output,
					config_head->state.x, config_head->state.y);
		wlr_output_state_set_transform(&state, config_head->state.transform);
		wlr_output_state_set_scale(&state, config_head->state.scale);
		wlr_output_state_set_adaptive_sync_enabled(&state,


@@ 2539,6 2534,12 @@ apply_or_test:
		ok &= test ? wlr_output_test_state(wlr_output, &state)
				: wlr_output_commit_state(wlr_output, &state);

		/* Don't move monitors if position wouldn't change, this to avoid
		* wlroots marking the output as manually configured */
		if (!test && wlr_output->enabled && (m->m.x != config_head->state.x || m->m.y != config_head->state.y))
			wlr_output_layout_add(output_layout, wlr_output,
					config_head->state.x, config_head->state.y);

		wlr_output_state_finish(&state);
	}


Do not follow this link