From 5fe9ddbbcbbf4958d1590a9acbee33b28008ad68 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 8 May 2015 17:15:31 +0200 Subject: bring wayland support up to date MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/lib/gamma-wayland.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/gamma-wayland.c b/src/lib/gamma-wayland.c index ceeacd5..0a85ff8 100644 --- a/src/lib/gamma-wayland.c +++ b/src/lib/gamma-wayland.c @@ -283,6 +283,8 @@ void libgamma_wayland_method_capabilities(libgamma_method_capabilities_t* restri /* Wayland/Orbital is a real non-faked adjustment method. */ this->real = 1; this->fake = 0; + /* Gamma ramp adjustments are non-persistent. */ + this->auto_restore = 1; } @@ -738,7 +740,7 @@ int libgamma_wayland_get_crtc_information(libgamma_crtc_information_t* restrict /* Store gamma depth and gamma support. */ this->gamma_depth = 16; - this->gamma_support = data->gamma_maybe_supported; + this->gamma_support = data->gamma_maybe_supported ? LIBGAMMA_MAYBE : LIBGAMMA_NO; /* Store active. */ this->active = data->removed == 0; -- cgit v1.2.3-70-g09d2