mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	view: is_toplevel() deal with !view
This commit is contained in:
		
							parent
							
								
									fc2754ac89
								
							
						
					
					
						commit
						c6c73366d2
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -2,6 +2,8 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static bool is_toplevel(struct view *view)
 | 
					static bool is_toplevel(struct view *view)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
						if (!view)
 | 
				
			||||||
 | 
							return false;
 | 
				
			||||||
	if (!view->been_mapped)
 | 
						if (!view->been_mapped)
 | 
				
			||||||
		return false;
 | 
							return false;
 | 
				
			||||||
	switch (view->type) {
 | 
						switch (view->type) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue