mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Avoid creating zero-sized textures for marks
Same as6327f1b361("Avoid creating zero-sized textures for titlebars") but for marks. (cherry picked from commite3e99d961d)
This commit is contained in:
		
							parent
							
								
									7d6b23a0be
								
							
						
					
					
						commit
						9bd664175d
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1624,6 +1624,10 @@ static void update_marks_texture(struct sway_container *con,
 | 
			
		|||
			"%s", buffer);
 | 
			
		||||
	cairo_destroy(c);
 | 
			
		||||
 | 
			
		||||
	if (width == 0 || height == 0) {
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	cairo_surface_t *surface = cairo_image_surface_create(
 | 
			
		||||
			CAIRO_FORMAT_ARGB32, width, height);
 | 
			
		||||
	cairo_t *cairo = cairo_create(surface);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue