Quickfix to stop core key events from doubling up.

This commit is contained in:
Peter Hutterer 2007-06-25 13:38:25 +09:30
parent 4d5df14f2c
commit c4e850a781

View File

@ -69,6 +69,13 @@ unsigned ndx;
/* below XKB, such as a key that physically locks. XKB does not */
/* do anything to implement the behavior, but it *does* report that */
/* 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) {
switch (behavior.type) {
case XkbKB_Default:
@ -153,6 +160,7 @@ unsigned ndx;
break;
}
}
#endif
XkbHandleActions(keybd,keybd,xE,count);
return;
}