mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Merge pull request #1321 from RyanDwyer/xwm-remove-dangling-parent
xwm: Remove child->parent pointer when parent destroys
This commit is contained in:
		
						commit
						d88fffa5c4
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -313,6 +313,7 @@ static void xwayland_surface_destroy(
 | 
				
			||||||
	wl_list_for_each_safe(child, next, &xsurface->children, parent_link) {
 | 
						wl_list_for_each_safe(child, next, &xsurface->children, parent_link) {
 | 
				
			||||||
		wl_list_remove(&child->parent_link);
 | 
							wl_list_remove(&child->parent_link);
 | 
				
			||||||
		wl_list_init(&child->parent_link);
 | 
							wl_list_init(&child->parent_link);
 | 
				
			||||||
 | 
							child->parent = NULL;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (xsurface->surface_id) {
 | 
						if (xsurface->surface_id) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue