diff options
author | Daniel Stone <daniel@fooishbar.org> | 2006-04-03 11:37:30 +0000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2006-04-03 11:37:30 +0000 |
commit | 66500819b1ca730a7b1df400a8368a08cbe49335 (patch) | |
tree | b849fa9d1bbff79bb8de5e51d97473b0195bc0e3 /xkb/xkbUtils.c | |
parent | 2a6c11aa3b06f13dad94f3441c7184e6720a2bf4 (diff) |
Bug #1358: Make ISO_Prev_Group cycle/wrap as ISO_Next_Group does.
Diffstat (limited to 'xkb/xkbUtils.c')
-rw-r--r-- | xkb/xkbUtils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xkb/xkbUtils.c b/xkb/xkbUtils.c index 70fb9e412..e9e9c2636 100644 --- a/xkb/xkbUtils.c +++ b/xkb/xkbUtils.c @@ -756,11 +756,11 @@ unsigned char grp; grp= state->locked_group; - if (grp>=ctrls->num_groups) + if (grp>=ctrls->num_groups || grp < 0) state->locked_group= XkbAdjustGroup(grp,ctrls); grp= state->locked_group+state->base_group+state->latched_group; - if (grp>=ctrls->num_groups) + if (grp>=ctrls->num_groups || grp < 0) state->group= XkbAdjustGroup(grp,ctrls); else state->group= grp; XkbComputeCompatState(xkbi); |