mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	pointer-constraints-v1: reset committed on commit
Knowing which fields changed in the last commit is more useful than knowing which fields were ever set on the surface.
This commit is contained in:
		
							parent
							
								
									85f44f3684
								
							
						
					
					
						commit
						da5f53b461
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -114,7 +114,7 @@ static void pointer_constraint_commit(
 | 
			
		|||
			WLR_POINTER_CONSTRAINT_V1_STATE_CURSOR_HINT) {
 | 
			
		||||
		constraint->current.cursor_hint = constraint->pending.cursor_hint;
 | 
			
		||||
	}
 | 
			
		||||
	constraint->current.committed |= constraint->pending.committed;
 | 
			
		||||
	constraint->current.committed = constraint->pending.committed;
 | 
			
		||||
 | 
			
		||||
	bool updated_region = !!constraint->pending.committed;
 | 
			
		||||
	constraint->pending.committed = 0;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue