Skip to content

Commit

Permalink
try to apply gamma LUT in updatemons
Browse files Browse the repository at this point in the history
this in the case the output was re-enabled
  • Loading branch information
sevz17 committed Nov 22, 2023
1 parent d2dd2f4 commit 6838f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dwl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 6838f90

Please sign in to comment.