~ruther/dwl

e03896b4d61ae99eec16f3ed0408d5499c0494b4 — Leonardo Hernández Hernández 1 year, 4 months ago e7e84b1
avoid duplication of lines

the output state is copied when creating a output configuration head
1 files changed, 1 insertions(+), 2 deletions(-)

M dwl.c
M dwl.c => dwl.c +1 -2
@@ 2599,8 2599,7 @@ updatemons(struct wl_listener *listener, void *data)
		/* Try to re-set the gamma LUT when updating monitors,
		 * it's only really needed when enabling a disabled output, but meh. */
		m->gamma_lut_changed = 1;
		config_head->state.enabled = 1;
		config_head->state.mode = m->wlr_output->current_mode;

		config_head->state.x = m->m.x;
		config_head->state.y = m->m.y;
	}

Do not follow this link