diff options
| author | Leonardo Hernández Hernández <leohdz172@proton.me> | |
|---|---|---|
| 2023-12-07 22:18:49 -0600 | ||
| committer | Leonardo Hernández Hernández <leohdz172@proton.me> | |
| 2023-12-07 22:18:49 -0600 | ||
| commit | e03896b4d61ae99eec16f3ed0408d5499c0494b4 (patch) | |
| tree | eddc5d8798bf385de47014ad8dd756623d7368c0 /dwl.c | |
| parent | e7e84b10837424ea6d969afa239944ea53d16b14 (diff) | |
| download | dwl-e03896b4d61ae99eec16f3ed0408d5499c0494b4.tar.gz dwl-e03896b4d61ae99eec16f3ed0408d5499c0494b4.tar.bz2 dwl-e03896b4d61ae99eec16f3ed0408d5499c0494b4.zip | |
avoid duplication of lines
the output state is copied when creating a output configuration head
@@ -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; } |