mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
@@ -40,7 +40,7 @@ message DisplayInfo {
|
||||
int32 height = 4;
|
||||
string name = 5;
|
||||
bool online = 6;
|
||||
bool cursor_embeded = 7;
|
||||
bool cursor_embedded = 7;
|
||||
}
|
||||
|
||||
message PortForward {
|
||||
@@ -420,7 +420,7 @@ message SwitchDisplay {
|
||||
sint32 y = 3;
|
||||
int32 width = 4;
|
||||
int32 height = 5;
|
||||
bool cursor_embeded = 6;
|
||||
bool cursor_embedded = 6;
|
||||
}
|
||||
|
||||
message PermissionInfo {
|
||||
|
||||
@@ -72,16 +72,16 @@ pub fn is_x11() -> bool {
|
||||
|
||||
#[cfg(x11)]
|
||||
#[inline]
|
||||
pub fn is_cursor_embeded() -> bool {
|
||||
pub fn is_cursor_embedded() -> bool {
|
||||
if is_x11() {
|
||||
x11::IS_CURSOR_EMBEDED
|
||||
x11::is_cursor_embedded
|
||||
} else {
|
||||
wayland::IS_CURSOR_EMBEDED
|
||||
wayland::is_cursor_embedded
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(x11))]
|
||||
#[inline]
|
||||
pub fn is_cursor_embeded() -> bool {
|
||||
pub fn is_cursor_embedded() -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ use std::{io, sync::RwLock, time::Duration};
|
||||
|
||||
pub struct Capturer(Display, Box<dyn Recorder>, bool, Vec<u8>);
|
||||
|
||||
pub const IS_CURSOR_EMBEDED: 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();
|
||||
|
||||
@@ -3,7 +3,7 @@ use std::{io, ops, time::Duration};
|
||||
|
||||
pub struct Capturer(x11::Capturer);
|
||||
|
||||
pub const IS_CURSOR_EMBEDED: 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