mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
avoid duplication of lines
the output state is copied when creating a output configuration head
This commit is contained in:
parent
e7e84b1083
commit
e03896b4d6
1 changed files with 1 additions and 2 deletions
3
dwl.c
3
dwl.c
|
@ -2599,8 +2599,7 @@ updatemons(struct wl_listener *listener, void *data)
|
||||||
/* Try to re-set the gamma LUT when updating monitors,
|
/* Try to re-set the gamma LUT when updating monitors,
|
||||||
* it's only really needed when enabling a disabled output, but meh. */
|
* it's only really needed when enabling a disabled output, but meh. */
|
||||||
m->gamma_lut_changed = 1;
|
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.x = m->m.x;
|
||||||
config_head->state.y = m->m.y;
|
config_head->state.y = m->m.y;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue