mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	xdg-shell: remove redundant NULL buffer check
This is already checked in role precommit handler, and if the buffer is NULL due to failed upload, that means the surface was already unmapped.
This commit is contained in:
		
							parent
							
								
									31af2b67b0
								
							
						
					
					
						commit
						28248dd83b
					
				
					 1 changed files with 0 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -336,10 +336,6 @@ void handle_xdg_surface_commit(struct wlr_surface *wlr_surface) {
 | 
			
		|||
		surface->mapped = true;
 | 
			
		||||
		wlr_signal_emit_safe(&surface->events.map, surface);
 | 
			
		||||
	}
 | 
			
		||||
	if (surface->configured && !wlr_surface_has_buffer(surface->surface) &&
 | 
			
		||||
			surface->mapped) {
 | 
			
		||||
		unmap_xdg_surface(surface);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void handle_xdg_surface_precommit(struct wlr_surface *wlr_surface) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue