Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

Fix. Custom resolution removed after 2rd conn (#7571)

fufesou9e7137ce09da
diff --git a/src/ui_session_interface.rs b/src/ui_session_interface.rs
index 02bd99eff..348bcbd7b 100644
--- a/src/ui_session_interface.rs
+++ b/src/ui_session_interface.rs
@@ -1228,7 +1228,7 @@ 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.do_change_resolution(w, h);
+ self.change_resolution(display, w, h);
}
}