diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-03-15 11:10:54 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-03-15 13:29:36 +0400 |
| commit | 642c6e7512f25f1fdc47dfa6a6eaec38c5faa69b (patch) | |
| tree | 9b2a7fae57b1fe8cf11eee72e07fbc290761060a /src/handlers | |
| parent | 6839a118bb691fc022c8ac9e2564717ae995b5ce (diff) | |
| download | niri-642c6e7512f25f1fdc47dfa6a6eaec38c5faa69b.tar.gz niri-642c6e7512f25f1fdc47dfa6a6eaec38c5faa69b.tar.bz2 niri-642c6e7512f25f1fdc47dfa6a6eaec38c5faa69b.zip | |
Store gamma changes to apply on session resume
Diffstat (limited to 'src/handlers')
| -rw-r--r-- | src/handlers/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handlers/mod.rs b/src/handlers/mod.rs index d027194c..e5df8b43 100644 --- a/src/handlers/mod.rs +++ b/src/handlers/mod.rs @@ -460,7 +460,7 @@ impl GammaControlHandler for State { } } - fn set_gamma(&mut self, output: &Output, ramp: Option<&[u16]>) -> Option<()> { + fn set_gamma(&mut self, output: &Output, ramp: Option<Vec<u16>>) -> Option<()> { match self.backend.tty().set_gamma(output, ramp) { Ok(()) => Some(()), Err(err) => { |
