xkb: fix wrapping when switching between groups
Use XkbCharToInt as that's what we're doing.
This commit is contained in:
		
							parent
							
								
									c31672e6aa
								
							
						
					
					
						commit
						fa1ac94178
					
				|  | @ -754,12 +754,12 @@ unsigned char	grp; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|     grp= state->locked_group; |     grp= state->locked_group; | ||||||
|     if (grp>=ctrls->num_groups || grp < 0) |     if (grp>=ctrls->num_groups) | ||||||
| 	state->locked_group= XkbAdjustGroup(grp,ctrls); | 	state->locked_group= XkbAdjustGroup(XkbCharToInt(grp),ctrls); | ||||||
| 
 | 
 | ||||||
|     grp= state->locked_group+state->base_group+state->latched_group; |     grp= state->locked_group+state->base_group+state->latched_group; | ||||||
|     if (grp>=ctrls->num_groups || grp < 0) |     if (grp>=ctrls->num_groups) | ||||||
| 	 state->group= XkbAdjustGroup(grp,ctrls); | 	 state->group= XkbAdjustGroup(XkbCharToInt(grp),ctrls); | ||||||
|     else state->group= grp; |     else state->group= grp; | ||||||
|     XkbComputeCompatState(xkbi); |     XkbComputeCompatState(xkbi); | ||||||
|     return; |     return; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue