mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
fix linux to mac, keyboard input
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -74,9 +74,9 @@ pub fn is_x11() -> bool {
|
||||
#[inline]
|
||||
pub fn is_cursor_embedded() -> bool {
|
||||
if is_x11() {
|
||||
x11::is_cursor_embedded
|
||||
x11::IS_CURSOR_EMBEDDED
|
||||
} else {
|
||||
wayland::is_cursor_embedded
|
||||
wayland::IS_CURSOR_EMBEDDED
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ use std::{io, sync::RwLock, time::Duration};
|
||||
pub struct Capturer(Display, Box<dyn Recorder>, bool, Vec<u8>);
|
||||
|
||||
#[allow(non_upper_case_globals)]
|
||||
pub const is_cursor_embedded: bool = true;
|
||||
pub const IS_CURSOR_EMBEDDED: bool = true;
|
||||
|
||||
lazy_static::lazy_static! {
|
||||
static ref MAP_ERR: RwLock<Option<fn(err: String)-> io::Error>> = Default::default();
|
||||
|
||||
@@ -4,7 +4,7 @@ use std::{io, ops, time::Duration};
|
||||
pub struct Capturer(x11::Capturer);
|
||||
|
||||
#[allow(non_upper_case_globals)]
|
||||
pub const is_cursor_embedded: bool = false;
|
||||
pub const IS_CURSOR_EMBEDDED: bool = false;
|
||||
|
||||
impl Capturer {
|
||||
pub fn new(display: Display, yuv: bool) -> io::Result<Capturer> {
|
||||
|
||||
Reference in New Issue
Block a user