mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	#151 fix
This commit is contained in:
		
							parent
							
								
									6b962ebd22
								
							
						
					
					
						commit
						79da7f112a
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
					@ -204,9 +204,6 @@ void swap_geometry(swayc_t *a, swayc_t *b) {
 | 
				
			||||||
	b->height = h;
 | 
						b->height = h;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// TODO fix workspace movement, as in
 | 
					 | 
				
			||||||
// [a][b][c] => |move b| => [aa][cc]
 | 
					 | 
				
			||||||
// [a][b][c] => |down  | => [bbbbbb]
 | 
					 | 
				
			||||||
void move_container(swayc_t *container, enum movement_direction dir) {
 | 
					void move_container(swayc_t *container, enum movement_direction dir) {
 | 
				
			||||||
	enum swayc_layouts layout;
 | 
						enum swayc_layouts layout;
 | 
				
			||||||
	if (container->is_floating) {
 | 
						if (container->is_floating) {
 | 
				
			||||||
| 
						 | 
					@ -288,7 +285,7 @@ void move_container(swayc_t *container, enum movement_direction dir) {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void move_container_to(swayc_t* container, swayc_t* destination) {
 | 
					void move_container_to(swayc_t* container, swayc_t* destination) {
 | 
				
			||||||
	if (container == destination && swayc_is_parent_of(container, destination)) {
 | 
						if (container == destination || swayc_is_parent_of(container, destination)) {
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	swayc_t *parent = remove_child(container);
 | 
						swayc_t *parent = remove_child(container);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue