Skip to content

Commit

Permalink
Merge branch 'rustdesk:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbo8418 authored Mar 10, 2025
2 parents 2cfb67f + df4a101 commit 451ad20
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libs/clipboard/src/platform/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub fn create_cliprdr_context(
#[cfg(feature = "unix-file-copy-paste")]
pub mod unix;

#[cfg(target_os = "macos")]
#[cfg(all(feature = "unix-file-copy-paste", target_os = "macos"))]
pub fn create_cliprdr_context(
_enable_files: bool,
_enable_others: bool,
Expand Down
3 changes: 2 additions & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,8 @@ impl ClientClipboardHandler {
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(msg_out) = crate::clipboard::get_msg_if_not_support_multi_clip(
&pi.version,
Expand Down
7 changes: 4 additions & 3 deletions src/ui_session_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1403,9 +1403,10 @@ impl<T: InvokeUiSession> Session<T> {

#[inline]
fn try_change_init_resolution(&self, display: i32) {
if let Some((w, h)) = self.lc.read().unwrap().get_custom_resolution(display) {
self.change_resolution(display, w, h);
}
let Some((w, h)) = self.lc.read().unwrap().get_custom_resolution(display) else {
return;
};
self.change_resolution(display, w, h);
}

fn do_change_resolution(&self, display: i32, width: i32, height: i32) {
Expand Down

0 comments on commit 451ad20

Please sign in to comment.