mirror of
				https://github.com/swaywm/sway.git
				synced 2025-10-29 05:40:18 -04:00 
			
		
		
		
	commands/move: Warp cursor after moving workspace to another output
This makes sway's behavior consistent with i3 when `mouse_warping` is set to any value besides `none`. Fixes #7027.
This commit is contained in:
		
							parent
							
								
									fbf9191fb8
								
							
						
					
					
						commit
						e3c63bf58d
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -686,6 +686,9 @@ static struct cmd_results *cmd_move_workspace(int argc, char **argv) { | |||
| 	arrange_output(old_output); | ||||
| 	arrange_output(new_output); | ||||
| 
 | ||||
| 	struct sway_seat *seat = config->handler_context.seat; | ||||
| 	seat_consider_warp_to_focus(seat); | ||||
| 
 | ||||
| 	return cmd_results_new(CMD_SUCCESS, NULL); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ankit Pandey
						Ankit Pandey