mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Do not damage view child when container is NULL
In `view_child_damage`, do not damage the surface if it has been unmapped or if the container is NULL.
This commit is contained in:
		
							parent
							
								
									3087942c35
								
							
						
					
					
						commit
						a68bc5f449
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -735,6 +735,9 @@ static void view_subsurface_create(struct sway_view *view,
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void view_child_damage(struct sway_view_child *child, bool whole) {
 | 
					static void view_child_damage(struct sway_view_child *child, bool whole) {
 | 
				
			||||||
 | 
						if (!child || !child->mapped || !child->view || !child->view->container) {
 | 
				
			||||||
 | 
							return;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
	int sx, sy;
 | 
						int sx, sy;
 | 
				
			||||||
	child->impl->get_root_coords(child, &sx, &sy);
 | 
						child->impl->get_root_coords(child, &sx, &sy);
 | 
				
			||||||
	desktop_damage_surface(child->surface,
 | 
						desktop_damage_surface(child->surface,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue