summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2023-11-21 20:38:07 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2023-11-21 20:41:36 -0600
commit6838f909bd58e6f9775dcc463566c2c3ad3d4279 (patch)
tree634e8d983014ecaf08d9ec99ea8ef4a9a09dea02
parentd2dd2f49862dfc4c2f7164026e7421bf91d2325e (diff)
try to apply gamma LUT in updatemons
this in the case the output was re-enabled
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 4eac1fd..762f147 100644
--- a/dwl.c
+++ b/dwl.c
@@ -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;