Quickfix to stop core key events from doubling up.
This commit is contained in:
parent
4d5df14f2c
commit
c4e850a781
|
@ -69,6 +69,13 @@ unsigned ndx;
|
||||||
/* below XKB, such as a key that physically locks. XKB does not */
|
/* below XKB, such as a key that physically locks. XKB does not */
|
||||||
/* do anything to implement the behavior, but it *does* report that */
|
/* do anything to implement the behavior, but it *does* report that */
|
||||||
/* key is hardwired */
|
/* key is hardwired */
|
||||||
|
|
||||||
|
/* FIXME: this is bad. The down mask is set during ProcessOtherEvent. When
|
||||||
|
* we start processing the core event (and eventually arrive here), the
|
||||||
|
* down mask is already set and Xkb thinks it's a repeat event. We just
|
||||||
|
* silently ignore it for now.
|
||||||
|
*/
|
||||||
|
#if 0
|
||||||
if ((behavior.type&XkbKB_Permanent)==0) {
|
if ((behavior.type&XkbKB_Permanent)==0) {
|
||||||
switch (behavior.type) {
|
switch (behavior.type) {
|
||||||
case XkbKB_Default:
|
case XkbKB_Default:
|
||||||
|
@ -153,6 +160,7 @@ unsigned ndx;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
XkbHandleActions(keybd,keybd,xE,count);
|
XkbHandleActions(keybd,keybd,xE,count);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue