fix some misspellings

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2022-12-31 21:41:16 +08:00
parent 17225a25dd
commit b114ebf350
20 changed files with 63 additions and 61 deletions

View File

@@ -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 {

View File

@@ -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
}

View File

@@ -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();

View File

@@ -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> {