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: