Explorar el Código

Apply prefer_wayland only if no display driver is set

Before this patch any other display driver preference would be
overridden.
Riteo hace 1 año
padre
commit
755dbde873
Se han modificado 1 ficheros con 6 adiciones y 4 borrados
  1. 6 4
      main/main.cpp

+ 6 - 4
main/main.cpp

@@ -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";
+						}
 					}
 					}
 				}
 				}
 			}
 			}