mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-10 21:11:27 +03:00
improve lock, https://github.com/rustdesk/rustdesk/issues/11067
This commit is contained in:
@@ -894,7 +894,8 @@ impl ClientClipboardHandler {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(pi) = ctx.cfg.lc.read().unwrap().peer_info.as_ref() {
|
let pi = ctx.cfg.lc.read().unwrap().peer_info.clone();
|
||||||
|
if let Some(pi) = pi.as_ref() {
|
||||||
if let Some(message::Union::MultiClipboards(multi_clipboards)) = &msg.union {
|
if let Some(message::Union::MultiClipboards(multi_clipboards)) = &msg.union {
|
||||||
if let Some(msg_out) = crate::clipboard::get_msg_if_not_support_multi_clip(
|
if let Some(msg_out) = crate::clipboard::get_msg_if_not_support_multi_clip(
|
||||||
&pi.version,
|
&pi.version,
|
||||||
|
|||||||
@@ -1403,9 +1403,10 @@ impl<T: InvokeUiSession> Session<T> {
|
|||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn try_change_init_resolution(&self, display: i32) {
|
fn try_change_init_resolution(&self, display: i32) {
|
||||||
if let Some((w, h)) = self.lc.read().unwrap().get_custom_resolution(display) {
|
let Some((w, h)) = self.lc.read().unwrap().get_custom_resolution(display) else {
|
||||||
self.change_resolution(display, w, h);
|
return;
|
||||||
}
|
};
|
||||||
|
self.change_resolution(display, w, h);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn do_change_resolution(&self, display: i32, width: i32, height: i32) {
|
fn do_change_resolution(&self, display: i32, width: i32, height: i32) {
|
||||||
|
|||||||
Reference in New Issue
Block a user