mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Allow splitting a floating view
This commit is contained in:
		
							parent
							
								
									da2a87f6c7
								
							
						
					
					
						commit
						c95847c9e1
					
				
					 1 changed files with 0 additions and 4 deletions
				
			
		| 
						 | 
					@ -10,10 +10,6 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static struct cmd_results *do_split(int layout) {
 | 
					static struct cmd_results *do_split(int layout) {
 | 
				
			||||||
	struct sway_container *con = config->handler_context.current_container;
 | 
						struct sway_container *con = config->handler_context.current_container;
 | 
				
			||||||
	if (container_is_floating(con)) {
 | 
					 | 
				
			||||||
		return cmd_results_new(CMD_FAILURE, "split",
 | 
					 | 
				
			||||||
			"Can't split a floating view");
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	struct sway_container *parent = container_split(con, layout);
 | 
						struct sway_container *parent = container_split(con, layout);
 | 
				
			||||||
	container_create_notify(parent);
 | 
						container_create_notify(parent);
 | 
				
			||||||
	arrange_windows(parent->parent);
 | 
						arrange_windows(parent->parent);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue