Commit 867992cd21baf49a542db1193ac0e01362b05e3f

Ran Benita 2012-10-23T17:17:18

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>

1
2
3
4
5
6
7
8
9
10
11
12
13
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;