mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-03 13:21:27 +03:00
Fix: wayland repeated share screen prompts (#6628)
* fix wayland repeated screen share prompts Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com> * fix is_x11 import Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com> * fix supported resolutions import Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com> * fix supported resolutions import Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com> --------- Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
This commit is contained in:
@@ -178,7 +178,17 @@ fn displays_to_msg(displays: Vec<DisplayInfo>) -> Message {
|
||||
}
|
||||
|
||||
fn check_get_displays_changed_msg() -> Option<Message> {
|
||||
#[cfg(target_os = "linux")]
|
||||
{
|
||||
if !is_x11() {
|
||||
return get_displays_msg();
|
||||
}
|
||||
}
|
||||
check_update_displays(&try_get_displays().ok()?);
|
||||
get_displays_msg()
|
||||
}
|
||||
|
||||
fn get_displays_msg() -> Option<Message> {
|
||||
let displays = SYNC_DISPLAYS.lock().unwrap().get_update_sync_displays()?;
|
||||
Some(displays_to_msg(displays))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user