ensure init cursor embedded

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-01-29 10:58:04 +08:00
parent 340897ab18
commit d1090fc62c
3 changed files with 22 additions and 19 deletions

View File

@@ -12,7 +12,7 @@ cfg_if! {
mod x11;
pub use self::linux::*;
pub use self::x11::Frame;
pub use self::wayland::{set_map_err, detect_cursor_embedded};
pub use self::wayland::set_map_err;
} else {
mod x11;
pub use self::x11::*;
@@ -76,7 +76,7 @@ pub fn is_cursor_embedded() -> bool {
if is_x11() {
x11::IS_CURSOR_EMBEDDED
} else {
unsafe { wayland::IS_CURSOR_EMBEDDED }
wayland::is_cursor_embedded()
}
}