mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	keyboard: add keyboard_get_all_modifiers()
And make mousebind handlers use that one. Also remove keyboard_any_modifiers_pressed() and replace its usage with the new function. Without this patch we would only request the modifier state of the keyboard group which makes mousebinds involving keyboard modifiers break for virtual keyboards like when using wayvnc. Same story for hiding the workspace overlay or snapping to regions. Fixes: #2511
This commit is contained in:
		
							parent
							
								
									577c24306f
								
							
						
					
					
						commit
						0627190060
					
				
					 6 changed files with 31 additions and 26 deletions
				
			
		| 
						 | 
				
			
			@ -22,6 +22,6 @@ void keyboard_update_layout(struct seat *seat, xkb_layout_index_t layout);
 | 
			
		|||
void keyboard_cancel_keybind_repeat(struct keyboard *keyboard);
 | 
			
		||||
void keyboard_cancel_all_keybind_repeats(struct seat *seat);
 | 
			
		||||
 | 
			
		||||
bool keyboard_any_modifiers_pressed(struct wlr_keyboard *keyboard);
 | 
			
		||||
uint32_t keyboard_get_all_modifiers(struct seat *seat);
 | 
			
		||||
 | 
			
		||||
#endif /* LABWC_KEYBOARD_H */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue