add global init and update wayland error map

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2022-10-11 20:36:19 -07:00
parent 244c07e50e
commit 2da5401fd4
9 changed files with 151 additions and 12 deletions

View File

@@ -745,7 +745,7 @@ impl Connection {
try_activate_screen();
match super::video_service::get_displays().await {
Err(err) => {
res.set_error(format!("X11 error: {}", err));
res.set_error(format!("Error: {}", err));
}
Ok((current, displays)) => {
pi.displays = displays.into();