mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge pull request #2583 from RyanDwyer/fix-null-surface-crash
Fix crash when views rapidly map and unmap
This commit is contained in:
		
						commit
						7b79ab2577
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -266,7 +266,7 @@ static void render_view(struct sway_output *output, pixman_region32_t *damage,
 | 
				
			||||||
	struct sway_view *view = con->view;
 | 
						struct sway_view *view = con->view;
 | 
				
			||||||
	if (view->saved_buffer) {
 | 
						if (view->saved_buffer) {
 | 
				
			||||||
		render_saved_view(view, output, damage, view->container->alpha);
 | 
							render_saved_view(view, output, damage, view->container->alpha);
 | 
				
			||||||
	} else {
 | 
						} else if (view->surface) {
 | 
				
			||||||
		render_view_toplevels(view, output, damage, view->container->alpha);
 | 
							render_view_toplevels(view, output, damage, view->container->alpha);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue