wayland tip

This commit is contained in:
rustdesk
2022-12-04 18:39:59 +08:00
parent 3c584a7c01
commit 3f009a3bc7
3 changed files with 35 additions and 13 deletions

View File

@@ -529,6 +529,7 @@ pub fn main_get_app_name() -> String {
pub fn main_get_app_name_sync() -> SyncReturn<String> {
SyncReturn(get_app_name())
}
pub fn main_get_license() -> String {
get_license()
}
@@ -1207,6 +1208,14 @@ pub fn main_on_main_window_close() {
crate::portable_service::client::drop_portable_service_shared_memory();
}
pub fn main_current_is_wayland() -> SyncReturn<bool> {
SyncReturn(current_is_wayland())
}
pub fn main_is_login_wayland() -> SyncReturn<bool> {
SyncReturn(is_login_wayland())
}
#[cfg(target_os = "android")]
pub mod server_side {
use jni::{