aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-05-08 17:15:31 +0200
committerMattias Andrée <maandree@operamail.com>2015-05-08 17:15:31 +0200
commit5fe9ddbbcbbf4958d1590a9acbee33b28008ad68 (patch)
treefe8bd9e58d0cfaff62544e14b3fecfc18bd9fc05
parentMerge branch 'master' into wayland (diff)
downloadlibgamma-5fe9ddbbcbbf4958d1590a9acbee33b28008ad68.tar.gz
libgamma-5fe9ddbbcbbf4958d1590a9acbee33b28008ad68.tar.bz2
libgamma-5fe9ddbbcbbf4958d1590a9acbee33b28008ad68.tar.xz
bring wayland support up to date
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--src/lib/gamma-wayland.c4
1 files changed, 3 insertions, 1 deletions
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;