Skip to content

Commit 39377c2

Browse files
committed
Merge pull request #94774 from Riteo/thats-probably-my-biggest-oopsie-yet
Apply `prefer_wayland` only if no display driver is set
2 parents c7f862d + 755dbde commit 39377c2

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)