419 |
{ |
{ |
420 |
if (enable_compose && (XFilterEvent(&xevent, None) == True)) |
if (enable_compose && (XFilterEvent(&xevent, None) == True)) |
421 |
{ |
{ |
422 |
DEBUG_KBD("Filtering event\n"); |
DEBUG_KBD(("Filtering event\n")); |
423 |
continue; |
continue; |
424 |
} |
} |
425 |
|
|
445 |
else |
else |
446 |
{ |
{ |
447 |
/* Plain old XLookupString */ |
/* Plain old XLookupString */ |
448 |
DEBUG_KBD("No input context, using XLookupString\n"); |
DEBUG_KBD(("No input context, using XLookupString\n")); |
449 |
XLookupString((XKeyEvent *) & xevent, |
XLookupString((XKeyEvent *) & xevent, |
450 |
str, sizeof(str), &keysym, NULL); |
str, sizeof(str), &keysym, NULL); |
451 |
} |
} |
452 |
|
|
453 |
ksname = get_ksname(keysym); |
ksname = get_ksname(keysym); |
454 |
DEBUG_KBD("\nKeyPress for (keysym 0x%lx, %s)\n", keysym, ksname); |
DEBUG_KBD(("\nKeyPress for (keysym 0x%lx, %s)\n", keysym, ksname)); |
455 |
|
|
456 |
if (inhibit_key(keysym)) |
if (inhibit_key(keysym)) |
457 |
{ |
{ |
458 |
DEBUG_KBD("Inhibiting key\n"); |
DEBUG_KBD(("Inhibiting key\n")); |
459 |
break; |
break; |
460 |
} |
} |
461 |
|
|
474 |
sizeof(str), &keysym, NULL); |
sizeof(str), &keysym, NULL); |
475 |
|
|
476 |
ksname = get_ksname(keysym); |
ksname = get_ksname(keysym); |
477 |
DEBUG_KBD("\nKeyRelease for (keysym 0x%lx, %s)\n", keysym, ksname); |
DEBUG_KBD(("\nKeyRelease for (keysym 0x%lx, %s)\n", keysym, |
478 |
|
ksname)); |
479 |
|
|
480 |
if (inhibit_key(keysym)) |
if (inhibit_key(keysym)) |
481 |
break; |
break; |