mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-20 07:03:16 +00:00
wayland cursor embeded
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
1 parent
e13e0ab18f
commit
4d044ca57a
18 files changed
+152
-82
No files matched your search
@@ -69,3 +69,19 @@ pub trait TraitCapturer {
|
||||
pub fn is_x11() -> bool {
|
||||
"x11" == hbb_common::platform::linux::get_display_server()
|
||||
}
|
||||
|
||||
#[cfg(x11)]
|
||||
#[inline]
|
||||
pub fn is_cursor_embeded() -> bool {
|
||||
if is_x11() {
|
||||
x11::IS_CURSOR_EMBEDED
|
||||
} else {
|
||||
wayland::IS_CURSOR_EMBEDED
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(x11))]
|
||||
#[inline]
|
||||
pub fn is_cursor_embeded() -> bool {
|
||||
false
|
||||
}
|
||||
Reference in new issue
Block a user