summaryrefslogtreecommitdiff
path: root/include/inputstr.h
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2007-09-05 17:46:23 -0700
committerEric Anholt <eric@anholt.net>2007-09-05 17:46:23 -0700
commit81c28ffd2b13a83770eadcfd7829d35d319d637f (patch)
tree3a601e33945d7d980f06d9f40f78cde4cf413941 /include/inputstr.h
parente332335241af28ef0ab66b102d0cbc4e5c73ac68 (diff)
Fix key repeats during VT switch.
Add keyc->postdown, which represents the key state as of the last mieqEnqueue call, and use it when we need to know the posted state, instead of the processed state (keyc->down). Add small functions to getevents.c to query and modify key state in postdown and use them all through, eliminating previously broken uses.
Diffstat (limited to 'include/inputstr.h')
-rw-r--r--include/inputstr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/inputstr.h b/include/inputstr.h
index 3398949d4..d0cc85811 100644
--- a/include/inputstr.h
+++ b/include/inputstr.h
@@ -122,6 +122,7 @@ typedef struct _GrabRec {
typedef struct _KeyClassRec {
CARD8 down[DOWN_LENGTH];
+ CARD8 postdown[DOWN_LENGTH];
KeyCode *modifierKeyMap;
KeySymsRec curKeySyms;
int modifierKeyCount[8];