xi2: Get the effective group state by ORing the XIGroupState values
This commit is contained in:
		 Carlos Garnacho
					Carlos Garnacho
				
			
				
					committed by
					
						 Matthias Clasen
						Matthias Clasen
					
				
			
			
				
	
			
			
			 Matthias Clasen
						Matthias Clasen
					
				
			
						parent
						
							5b014bfdfb
						
					
				
				
					commit
					3ccf4e0896
				
			| @ -742,7 +742,7 @@ _gdk_x11_device_xi2_translate_state (XIModifierState *mods_state, | ||||
|     { | ||||
|       gint group; | ||||
|  | ||||
|       group = group_state->base + group_state->latched + group_state->locked; | ||||
|       group = group_state->base | group_state->latched | group_state->locked; | ||||
|  | ||||
|       /* FIXME: do we need the XKB complications for this ? */ | ||||
|       group = CLAMP(group, 0, 3); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user