mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	protocol: Make it clear that returned "one-shot" objects are destroyed
The objects returned by the frame and sync request are destroyed by the compositor after the "done" event on the wl_callback interface is fired.
This commit is contained in:
		
							parent
							
								
									e593832066
								
							
						
					
					
						commit
						e7d0a0b0ed
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
					@ -40,6 +40,10 @@
 | 
				
			||||||
	handled in-order and events are delivered in-order, this can
 | 
						handled in-order and events are delivered in-order, this can
 | 
				
			||||||
	used as a barrier to ensure all previous requests and the
 | 
						used as a barrier to ensure all previous requests and the
 | 
				
			||||||
	resulting events have been handled.
 | 
						resulting events have been handled.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						The object returned by this request will be destroyed by the
 | 
				
			||||||
 | 
						compositor after the callback is fired and as such the client must not
 | 
				
			||||||
 | 
						attempt to use it after that point.
 | 
				
			||||||
      </description>
 | 
					      </description>
 | 
				
			||||||
      <arg name="callback" type="new_id" interface="wl_callback"/>
 | 
					      <arg name="callback" type="new_id" interface="wl_callback"/>
 | 
				
			||||||
    </request>
 | 
					    </request>
 | 
				
			||||||
| 
						 | 
					@ -972,6 +976,10 @@
 | 
				
			||||||
	damage, or any other state changes. wl_surface.commit triggers a
 | 
						damage, or any other state changes. wl_surface.commit triggers a
 | 
				
			||||||
	display update, so the callback event will arrive after the next
 | 
						display update, so the callback event will arrive after the next
 | 
				
			||||||
	output refresh where the surface is visible.
 | 
						output refresh where the surface is visible.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						The object returned by this request will be destroyed by the
 | 
				
			||||||
 | 
						compositor after the callback is fired and as such the client must not
 | 
				
			||||||
 | 
						attempt to use it after that point.
 | 
				
			||||||
      </description>
 | 
					      </description>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      <arg name="callback" type="new_id" interface="wl_callback"/>
 | 
					      <arg name="callback" type="new_id" interface="wl_callback"/>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue