Apply prefer_wayland only if no display driver is set
Before this patch any other display driver preference would be overridden.
This commit is contained in:
@ -2631,10 +2631,12 @@ Error Main::setup2(bool p_show_boot_logo) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prefer_wayland) {
|
if (display_driver.is_empty()) {
|
||||||
display_driver = "wayland";
|
if (prefer_wayland) {
|
||||||
} else {
|
display_driver = "wayland";
|
||||||
display_driver = "default";
|
} else {
|
||||||
|
display_driver = "default";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user