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:
parent
de3035563c
commit
2e09b66963
@ -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
|
||||
|
@ -894,6 +894,7 @@ fn handlePowerManagerSetMode(
|
||||
}
|
||||
|
||||
output.updateLockRenderStateOnEnableDisable();
|
||||
output.gamma_dirty = true;
|
||||
}
|
||||
|
||||
fn handleSetGamma(
|
||||
|
Loading…
Reference in New Issue
Block a user