mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge pull request #2083 from RedSoxFan/fix-1976
Fix cmd_workspace crash when a surface has focus
This commit is contained in:
		
						commit
						fd885d5779
					
				
					 1 changed files with 0 additions and 7 deletions
				
			
		| 
						 | 
					@ -90,13 +90,6 @@ struct cmd_results *cmd_workspace(int argc, char **argv) {
 | 
				
			||||||
			free(name);
 | 
								free(name);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		workspace_switch(ws);
 | 
							workspace_switch(ws);
 | 
				
			||||||
		current_container =
 | 
					 | 
				
			||||||
			seat_get_focus(config->handler_context.seat);
 | 
					 | 
				
			||||||
		struct sway_container *new_output = container_parent(current_container, C_OUTPUT);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		if (config->mouse_warping && old_output != new_output) {
 | 
					 | 
				
			||||||
			// TODO: Warp mouse
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return cmd_results_new(CMD_SUCCESS, NULL, NULL);
 | 
						return cmd_results_new(CMD_SUCCESS, NULL, NULL);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue