Output: flag gamma as dirty on enable

We can end up with stale gamma settings if we don't re-check the
current gamma settings for the output on enable.

(cherry picked from commit 2e09b66963805caccfe8534d69f2f35dd4a4c3f7)
This commit is contained in:
Isaac Freund 2024-06-24 19:29:19 +02:00
parent 99b31c39f3
commit b85da67886
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11
2 changed files with 2 additions and 0 deletions

View File

@ -474,6 +474,7 @@ pub fn applyState(output: *Output, state: *wlr.Output.State) error{CommitFailed}
fn handleEnableDisable(output: *Output) void {
output.updateLockRenderStateOnEnableDisable();
output.gamma_dirty = true;
if (output.wlr_output.enabled) {
// Add the output to root.active_outputs and the output layout if it has not

View File

@ -881,6 +881,7 @@ fn handlePowerManagerSetMode(
}
output.updateLockRenderStateOnEnableDisable();
output.gamma_dirty = true;
}
fn handleSetGamma(