From 755dbde8738907ac647de16ea5481eaa5e778dff Mon Sep 17 00:00:00 2001 From: Riteo Date: Fri, 26 Jul 2024 07:29:34 +0200 Subject: [PATCH] Apply prefer_wayland only if no display driver is set Before this patch any other display driver preference would be overridden. --- main/main.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/main/main.cpp b/main/main.cpp index e1d53e7f1be..059172b14e5 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2631,10 +2631,12 @@ Error Main::setup2(bool p_show_boot_logo) { } } - if (prefer_wayland) { - display_driver = "wayland"; - } else { - display_driver = "default"; + if (display_driver.is_empty()) { + if (prefer_wayland) { + display_driver = "wayland"; + } else { + display_driver = "default"; + } } } }