emgram769/lighthouse

Dead characters produce unexpected output.

Opened this issue · 2 comments

When pressing the dead acute character, which is a dead key on my keyboard layout, lighthouse produces the character «Q». This seems to affect all dead keys on level one.

KeyPress event, serial 33, synthetic NO, window 0x2e00001,
    root 0x2bb, subw 0x0, time 7188125, (660,661), root:(1621,662),
    state 0x0, keycode 35 (keysym 0xfe51, dead_acute), same_screen YES,
    XLookupString gives 2 bytes: (c2 b4) "´"
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: True

KeyPress event, serial 33, synthetic NO, window 0x2e00001,
    root 0x2bb, subw 0x0, time 7188125, (660,661), root:(1621,662),
    state 0x0, keycode 0 (keysym 0x1000301, U0301), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 2 bytes: (cc 81) "́"
    XFilterEvent returns: False

I believe I resolved the issue with this most recent commit (b496ebe). Perhaps this will resolve the other segfault issue you saw, but I can't seem to reproduce it. let me know if you try the newest commit out

Hey, thanks! I checked it out, but the behavior with the dead chars remains unchanged (e.g., I’m seeing «Q» when pressing the acute key). However, this appears to have resolved the segfault from #12.