mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 08:34:12 +00:00
feat: cursor, linux, Xwayland (#12859)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
1 parent
6c949a9602
commit
df0ff4f134
4 files changed
+45
-6
No files matched your search
@@ -3709,13 +3709,13 @@ impl Connection {
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
let is_lower_win10 = false;
|
||||
#[cfg(target_os = "linux")]
|
||||
let is_wayland = !crate::platform::linux::is_x11();
|
||||
let is_linux_supported = crate::whiteboard::is_supported();
|
||||
#[cfg(not(target_os = "linux"))]
|
||||
let is_wayland = false;
|
||||
let is_linux_supported = false;
|
||||
let not_support_msg = if is_lower_win10 {
|
||||
"Windows 10 or greater is required."
|
||||
} else if is_wayland {
|
||||
"This feature is not supported on Wayland, please switch to X11."
|
||||
} else if cfg!(target_os = "linux") && !is_linux_supported {
|
||||
"This feature is not supported on native Wayland, please install XWayland or switch to X11."
|
||||
} else {
|
||||
""
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user