mirror of
				https://github.com/labwc/labwc.git
				synced 2025-10-29 05:40:24 -04:00 
			
		
		
		
	key-state: use struct assignment
This commit is contained in:
		
							parent
							
								
									0af7bc886a
								
							
						
					
					
						commit
						c78750283f
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		|  | @ -79,9 +79,7 @@ key_state_pressed_sent_keycodes(void) | |||
| 	report(&bound, "before - bound:"); | ||||
| 
 | ||||
| 	/* pressed_sent = pressed - bound */ | ||||
| 	memcpy(pressed_sent.keys, pressed.keys, | ||||
| 		MAX_PRESSED_KEYS * sizeof(uint32_t)); | ||||
| 	pressed_sent.nr_keys = pressed.nr_keys; | ||||
| 	pressed_sent = pressed; | ||||
| 	for (int i = 0; i < bound.nr_keys; ++i) { | ||||
| 		remove_key(&pressed_sent, bound.keys[i]); | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 John Lindgren
						John Lindgren