mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Revert "sway/container.c: fix segfault where view is assigned prematurely"
This commit is contained in:
		
							parent
							
								
									6436c4f783
								
							
						
					
					
						commit
						5b0af661b0
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -820,10 +820,10 @@ swayc_t *swayc_tabbed_stacked_parent(swayc_t *view) {
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	do {
 | 
						do {
 | 
				
			||||||
 | 
							view = view->parent;
 | 
				
			||||||
		if (view->layout == L_TABBED || view->layout == L_STACKED) {
 | 
							if (view->layout == L_TABBED || view->layout == L_STACKED) {
 | 
				
			||||||
			parent = view;
 | 
								parent = view;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		view = view->parent;
 | 
					 | 
				
			||||||
	} while (view && view->type != C_WORKSPACE);
 | 
						} while (view && view->type != C_WORKSPACE);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return parent;
 | 
						return parent;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue