state: fix typo in state component copying Gladly no-one should have been fast enough to hit this. Signed-off-by: Ran Benita <ran234@gmail.com>
diff --git a/src/state.c b/src/state.c
index c8e3147..8624a9c 100644
--- a/src/state.c
+++ b/src/state.c
@@ -755,7 +755,7 @@ xkb_state_update_mask(struct xkb_state *state,
xkb_mod_index_t num_mods;
xkb_mod_index_t idx;
- state->cur = state->prev;
+ state->prev = state->cur;
state->cur.base_mods = 0;
state->cur.latched_mods = 0;