ensure init cursor embedded

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou committed 2023-01-29 12:41:16 +08:00
1 parent 340897ab18
commit d1090fc62c
3 files changed
+22 -19

No files matched your search

+2 -2
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()
}
}