fix: wayland, accept conn (#7951)
Show prompt window after the controlled side accepting the connection. Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
		
							parent
							
								
									5537c525ca
								
							
						
					
					
						commit
						a3b4dcf762
					
				| @ -1228,6 +1228,10 @@ impl Connection { | ||||
|         if self.file_transfer.is_some() { | ||||
|             res.set_peer_info(pi); | ||||
|         } else { | ||||
|             if let Some(msg_out) = super::display_service::is_inited_msg() { | ||||
|                 self.send(msg_out).await; | ||||
|             } | ||||
| 
 | ||||
|             #[cfg(not(any(target_os = "android", target_os = "ios")))] | ||||
|             { | ||||
|                 #[cfg(not(windows))] | ||||
| @ -1249,9 +1253,6 @@ impl Connection { | ||||
|             } | ||||
| 
 | ||||
|             try_activate_screen(); | ||||
|             if let Some(msg_out) = super::video_service::is_inited_msg() { | ||||
|                 self.send(msg_out).await; | ||||
|             } | ||||
| 
 | ||||
|             match super::display_service::update_get_sync_displays().await { | ||||
|                 Err(err) => { | ||||
|  | ||||
| @ -838,14 +838,6 @@ fn handle_one_frame( | ||||
|     Ok(send_conn_ids) | ||||
| } | ||||
| 
 | ||||
| pub fn is_inited_msg() -> Option<Message> { | ||||
|     #[cfg(target_os = "linux")] | ||||
|     if !is_x11() { | ||||
|         return super::wayland::is_inited(); | ||||
|     } | ||||
|     None | ||||
| } | ||||
| 
 | ||||
| #[inline] | ||||
| pub fn refresh() { | ||||
|     #[cfg(target_os = "android")] | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user