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.
This commit is contained in:
Isaac Freund 2024-06-24 19:29:19 +02:00
parent de3035563c
commit 2e09b66963
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 { fn handleEnableDisable(output: *Output) void {
output.updateLockRenderStateOnEnableDisable(); output.updateLockRenderStateOnEnableDisable();
output.gamma_dirty = true;
if (output.wlr_output.enabled) { if (output.wlr_output.enabled) {
// Add the output to root.active_outputs and the output layout if it has not // Add the output to root.active_outputs and the output layout if it has not

View File

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