mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	compositor: drop surface precommit event
This is unused.
This commit is contained in:
		
							parent
							
								
									78836298ef
								
							
						
					
					
						commit
						6a2ff0dffe
					
				
					 2 changed files with 0 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -174,7 +174,6 @@ struct wlr_surface {
 | 
			
		|||
 | 
			
		||||
	struct {
 | 
			
		||||
		struct wl_signal client_commit;
 | 
			
		||||
		struct wl_signal precommit; // const struct wlr_surface_state *
 | 
			
		||||
		struct wl_signal commit;
 | 
			
		||||
 | 
			
		||||
		/**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -427,8 +427,6 @@ static void surface_commit_state(struct wlr_surface *surface,
 | 
			
		|||
		struct wlr_surface_state *next) {
 | 
			
		||||
	assert(next->cached_state_locks == 0);
 | 
			
		||||
 | 
			
		||||
	wl_signal_emit_mutable(&surface->events.precommit, next);
 | 
			
		||||
 | 
			
		||||
	bool invalid_buffer = next->committed & WLR_SURFACE_STATE_BUFFER;
 | 
			
		||||
 | 
			
		||||
	if (invalid_buffer && next->buffer == NULL) {
 | 
			
		||||
| 
						 | 
				
			
			@ -691,7 +689,6 @@ static struct wlr_surface *surface_create(struct wl_client *client,
 | 
			
		|||
	surface->pending.seq = 1;
 | 
			
		||||
 | 
			
		||||
	wl_signal_init(&surface->events.client_commit);
 | 
			
		||||
	wl_signal_init(&surface->events.precommit);
 | 
			
		||||
	wl_signal_init(&surface->events.commit);
 | 
			
		||||
	wl_signal_init(&surface->events.map);
 | 
			
		||||
	wl_signal_init(&surface->events.unmap);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue