Skip to content

Commit

Permalink
Apply prefer_wayland only if no display driver is set
Browse files Browse the repository at this point in the history
Before this patch any other display driver preference would be
overridden.
  • Loading branch information
Riteo committed Jul 26, 2024
1 parent e343dbb commit 755dbde
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
}
}
}
Expand Down

0 comments on commit 755dbde

Please sign in to comment.