mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	input-manager: consider cursor warping on input_manager_set_focus
input_manager_set_focus is used to set the focus after mapping the view in view_map. This needs to consider to warp the cursor as well, since for WARP_CONTAINER, the cursor should warp to the newly created view.
This commit is contained in:
		
							parent
							
								
									707f3ad275
								
							
						
					
					
						commit
						6f87d0c2cf
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -431,6 +431,7 @@ void input_manager_set_focus(struct sway_node *node) {
 | 
				
			||||||
	struct sway_seat *seat;
 | 
						struct sway_seat *seat;
 | 
				
			||||||
	wl_list_for_each(seat, &server.input->seats, link) {
 | 
						wl_list_for_each(seat, &server.input->seats, link) {
 | 
				
			||||||
		seat_set_focus(seat, node);
 | 
							seat_set_focus(seat, node);
 | 
				
			||||||
 | 
							seat_consider_warp_to_focus(seat);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue