mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	wlr_surface: use post_event instead of queue
This fixes not sending anything back to the client if the only event it's waiting for is a buffer release, and nothing else is in the pipe. Workaround for #102 - there probably is a better solution as weston and wlc do not need to use post_event here.
This commit is contained in:
		
							parent
							
								
									d748fd1a8e
								
							
						
					
					
						commit
						bb3b9d0156
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -292,7 +292,7 @@ release:
 | 
				
			||||||
	pixman_region32_fini(&surface->current.buffer_damage);
 | 
						pixman_region32_fini(&surface->current.buffer_damage);
 | 
				
			||||||
	pixman_region32_init(&surface->current.buffer_damage);
 | 
						pixman_region32_init(&surface->current.buffer_damage);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	wl_resource_queue_event(surface->current.buffer, WL_BUFFER_RELEASE);
 | 
						wl_resource_post_event(surface->current.buffer, WL_BUFFER_RELEASE);
 | 
				
			||||||
	surface->current.buffer = NULL;
 | 
						surface->current.buffer = NULL;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue