mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	input-method: avoid and log unneeded set_focus
This commit is contained in:
		
							parent
							
								
									1241b42c88
								
							
						
					
					
						commit
						9d455b48e4
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -297,6 +297,9 @@ void sway_input_method_relay_set_focus(struct sway_input_method_relay *relay,
 | 
			
		|||
			if (surface != text_input->input->focused_surface) {
 | 
			
		||||
				relay_disable_text_input(relay, text_input);
 | 
			
		||||
				wlr_text_input_v3_send_leave(text_input->input);
 | 
			
		||||
			} else {
 | 
			
		||||
				sway_log(SWAY_DEBUG, "IM relay set_focus already focused");
 | 
			
		||||
				continue;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue