Changeset 4641 for libcaca


Ignore:
Timestamp:
Aug 26, 2010, 11:14:12 PM (9 years ago)
Author:
Pascal Terjan
Message:
  • Fix using dead keys on my us_intl keyboard
    • Ignore key events when XFilterEvent returns true
    • Do not set key to 0 when it is over 128
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/driver/x11.c

    r4369 r4641  
    599599            continue;
    600600
     601        if(XFilterEvent(&xevent, None) == True)
     602            continue;
     603
    601604#if defined X_HAVE_UTF8_STRING
    602605        if(Xutf8LookupString(dp->drv.p->ic, &xevent.xkey, ev->data.key.utf8, 8, NULL, NULL))
    603606        {
    604607            ev->data.key.utf32 = caca_utf8_to_utf32(ev->data.key.utf8, NULL);
    605             if(ev->data.key.utf32 <= 0x7f)
     608            if(ev->data.key.utf32 <= 0xff)
    606609            {
    607610                ev->data.key.ch = ev->data.key.utf32;
Note: See TracChangeset for help on using the changeset viewer.