add global init and update wayland error map

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou committed 2022-10-17 21:55:26 +08:00
1 parent 244c07e50e
commit 2da5401fd4
9 files changed
+151 -12

No files matched your search

+1 -1
View File
@@ -547,7 +547,7 @@ pub fn get_error() -> String {
{
let dtype = crate::platform::linux::get_display_server();
if "wayland" == dtype {
return "".to_owned();
return crate::server::wayland::common_get_error();
}
if dtype != "x11" {
return format!(