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