mirror of
https://github.com/lutris/lutris
synced 2024-10-14 19:53:53 +00:00
Disable Wine virtual desktop when used with Wine-GE or Proton
This commit is contained in:
parent
8c0951fbd3
commit
e4cc1d3eaf
|
@ -922,7 +922,6 @@ class wine(Runner):
|
|||
"Desktop": prefix_manager.set_virtual_desktop,
|
||||
"WineDesktop": prefix_manager.set_desktop_size,
|
||||
}
|
||||
|
||||
for key, path in self.reg_keys.items():
|
||||
value = self.runner_config.get(key) or "auto"
|
||||
if not value or value == "auto" and key not in managed_keys:
|
||||
|
@ -932,6 +931,12 @@ class wine(Runner):
|
|||
# Do not pass fallback 'auto' value to managed keys
|
||||
if value == "auto":
|
||||
value = None
|
||||
if value and key in ("Desktop", "WineDesktop") and (
|
||||
"wine-ge" in self.get_executable().lower()
|
||||
or "proton" in self.get_executable().lower()
|
||||
):
|
||||
logger.warning("Wine Virtual Desktop can't be used with Wine-GE and Proton")
|
||||
value = None
|
||||
managed_keys[key](value)
|
||||
continue
|
||||
# Convert numeric strings to integers so they are saved as dword
|
||||
|
|
Loading…
Reference in a new issue