From 1a0cf7f7e2139d1e298b43bc59681ff979e73ade Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Mon, 27 Apr 2020 07:51:44 -0500 Subject: [PATCH] proton: Unset WINE{E,F}SYNC if they are disabled --- proton | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/proton b/proton index d1b0e6a2..33b80043 100755 --- a/proton +++ b/proton @@ -484,10 +484,14 @@ class Session: self.check_environment("PROTON_OLD_GL_STRING", "oldglstr") self.check_environment("PROTON_USE_SECCOMP", "seccomp") - if not "noesync" in self.compat_config: + if "noesync" in self.compat_config: + self.env.pop("WINEESYNC", "") + else: self.env["WINEESYNC"] = "1" - if not "nofsync" in self.compat_config: + if "nofsync" in self.compat_config: + self.env.pop("WINEFSYNC", "") + else: self.env["WINEFSYNC"] = "1" if "seccomp" in self.compat_config: