state: fix typo in state component copying
authorRan Benita <ran234@gmail.com>
Tue, 23 Oct 2012 15:17:18 +0000 (17:17 +0200)
committerRan Benita <ran234@gmail.com>
Tue, 23 Oct 2012 15:22:13 +0000 (17:22 +0200)
Gladly no-one should have been fast enough to hit this.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/state.c

index c8e3147..8624a9c 100644 (file)
@@ -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;