mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	backend/x11: fix initial value of wlr_x11_buffer.n_busy
We lock the buffer there, so we need to initialize the n_busy
count to 1 as well.
Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3556
(cherry picked from commit bc8260f377)
			
			
This commit is contained in:
		
							parent
							
								
									27a0b8b74f
								
							
						
					
					
						commit
						ad5175118b
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -250,6 +250,7 @@ static struct wlr_x11_buffer *create_x11_buffer(struct wlr_x11_output *output,
 | 
			
		|||
		return NULL;
 | 
			
		||||
	}
 | 
			
		||||
	buffer->buffer = wlr_buffer_lock(wlr_buffer);
 | 
			
		||||
	buffer->n_busy = 1;
 | 
			
		||||
	buffer->pixmap = pixmap;
 | 
			
		||||
	buffer->x11 = x11;
 | 
			
		||||
	wl_list_insert(&output->buffers, &buffer->link);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue