Merge pull request #116366 from Calinou/editor-prefer-wayland-avoid-error-on-x11
Fix startup errors/warnings on X11 when the Prefer Wayland editor setting is enabled
This commit is contained in:
commit
5866e4f58f
1 changed files with 6 additions and 1 deletions
|
|
@ -3051,7 +3051,12 @@ Error Main::setup2(bool p_show_boot_logo) {
|
|||
init_custom_scale = value;
|
||||
init_custom_scale_found = true;
|
||||
} else if (!prefer_wayland_found && assign == "run/platforms/linuxbsd/prefer_wayland") {
|
||||
prefer_wayland = value;
|
||||
if (!OS::get_singleton()->get_environment("WAYLAND_DISPLAY").is_empty()) {
|
||||
// Do not prefer Wayland if not currently on a Wayland session.
|
||||
// This avoids error messages on startup when currently on X11
|
||||
// and the Prefer Wayland setting is enabled.
|
||||
prefer_wayland = value;
|
||||
}
|
||||
prefer_wayland_found = true;
|
||||
} else if (!tablet_found && assign == "interface/editor/tablet_driver") {
|
||||
tablet_driver_editor = value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue