From 9a0f388f66f6c7b388fecbbbb84cf0e95ef41fec Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Thu, 15 Nov 2018 00:16:02 +0100 Subject: [PATCH] compton: fix corrupt colors under Mesa 18 Fixes #441 --- modules/services/compton.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/services/compton.nix b/modules/services/compton.nix index f7a794e4c..136d160bc 100644 --- a/modules/services/compton.nix +++ b/modules/services/compton.nix @@ -302,6 +302,10 @@ in { ExecStart = "${cfg.package}/bin/compton --config ${configFile}"; Restart = "always"; RestartSec = 3; + } + // optionalAttrs (cfg.backend == "glx") { + # Temporarily fixes corrupt colours with Mesa 18. + Environment = [ "allow_rgb10_configs=false" ]; }; }; };