From e26a4a6b3319fa3853c9585f8c947c3ec1bae7d8 Mon Sep 17 00:00:00 2001 From: JoltedJon <14169426+JoltedJon@users.noreply.github.com> Date: Sun, 15 Mar 2026 13:55:02 -0400 Subject: [PATCH] GH-1226 Have Wayland chosen as default if user is using it --- main/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main/main.cpp b/main/main.cpp index 628c833098d..b645939be48 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -3196,6 +3196,13 @@ Error Main::setup2(bool p_show_boot_logo) { int display_driver_idx = -1; + if (display_driver == "default") { + String display = OS::get_singleton()->get_environment("WAYLAND_DISPLAY"); + if (!display.is_empty()) { + display_driver = "wayland"; + } + } + if (display_driver.is_empty() || display_driver == "default") { display_driver_idx = 0; } else {