Skip to content

Commit 755dbde

Browse files
committed
Apply prefer_wayland only if no display driver is set
Before this patch any other display driver preference would be overridden.
1 parent e343dbb commit 755dbde

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

main/main.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2631,10 +2631,12 @@ Error Main::setup2(bool p_show_boot_logo) {
26312631
}
26322632
}
26332633

2634-
if (prefer_wayland) {
2635-
display_driver = "wayland";
2636-
} else {
2637-
display_driver = "default";
2634+
if (display_driver.is_empty()) {
2635+
if (prefer_wayland) {
2636+
display_driver = "wayland";
2637+
} else {
2638+
display_driver = "default";
2639+
}
26382640
}
26392641
}
26402642
}

0 commit comments

Comments
 (0)