try to apply gamma LUT in updatemons

this in the case the output was re-enabled
This commit is contained in:
Leonardo Hernández Hernández 2023-11-21 20:38:07 -06:00
parent d2dd2f4986
commit 6838f909bd
No known key found for this signature in database
GPG Key ID: E538897EE11B9624
1 changed files with 1 additions and 1 deletions

2
dwl.c
View File

@ -2567,7 +2567,6 @@ updatemons(struct wl_listener *listener, void *data)
if (m->wlr_output->enabled
&& !wlr_output_layout_get(output_layout, m->wlr_output))
wlr_output_layout_add_auto(output_layout, m->wlr_output);
/* Now that we update the output layout we can get its box */
wlr_output_layout_get_box(output_layout, NULL, &sgeom);
@ -2603,6 +2602,7 @@ updatemons(struct wl_listener *listener, void *data)
if ((c = focustop(m)) && c->isfullscreen)
resize(c, m->m, 0);
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;