mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Fix a rootston crash when a client creates non-topmost popups
This commit is contained in:
		
							parent
							
								
									2964248f42
								
							
						
					
					
						commit
						393f7aaeff
					
				
					 2 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -18,6 +18,8 @@ static void popup_destroy(struct roots_view_child *child) {
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	wl_list_remove(&popup->destroy.link);
 | 
						wl_list_remove(&popup->destroy.link);
 | 
				
			||||||
	wl_list_remove(&popup->new_popup.link);
 | 
						wl_list_remove(&popup->new_popup.link);
 | 
				
			||||||
 | 
						wl_list_remove(&popup->map.link);
 | 
				
			||||||
 | 
						wl_list_remove(&popup->unmap.link);
 | 
				
			||||||
	view_child_finish(&popup->view_child);
 | 
						view_child_finish(&popup->view_child);
 | 
				
			||||||
	free(popup);
 | 
						free(popup);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -18,6 +18,8 @@ static void popup_destroy(struct roots_view_child *child) {
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	wl_list_remove(&popup->destroy.link);
 | 
						wl_list_remove(&popup->destroy.link);
 | 
				
			||||||
	wl_list_remove(&popup->new_popup.link);
 | 
						wl_list_remove(&popup->new_popup.link);
 | 
				
			||||||
 | 
						wl_list_remove(&popup->map.link);
 | 
				
			||||||
 | 
						wl_list_remove(&popup->unmap.link);
 | 
				
			||||||
	view_child_finish(&popup->view_child);
 | 
						view_child_finish(&popup->view_child);
 | 
				
			||||||
	free(popup);
 | 
						free(popup);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue