[Development] Qt/XCB applications and deadkeys (which cease working) (and sometimes the entire keyboard in Konsole)

Thiago Macieira thiago.macieira at intel.com
Thu Jun 8 18:02:07 CEST 2017


On quinta-feira, 8 de junho de 2017 06:23:48 PDT René J. V. Bertin wrote:
> > If some
> > other application is playing tricks with your keyboard, it will affect the
> > deadkeys.
> 
> I guess it'll be very nontrivial figuring out who might be responsible?

Try using xev and see if any events are sent between the deadkey and the key. 
Here's my output for <dead_acute> <e>:

KeyPress event, serial 40, synthetic NO, window 0x800001,
    root 0xdb, subw 0x0, time 444468201, (-1603,615), root:(217,676),
    state 0x0, keycode 48 (keysym 0xfe51, dead_acute), same_screen YES,
    XLookupString gives 2 bytes: (c2 b4) "´"
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: True

KeyRelease event, serial 40, synthetic NO, window 0x800001,
    root 0xdb, subw 0x0, time 444468270, (-1603,615), root:(217,676),
    state 0x0, keycode 48 (keysym 0xfe51, dead_acute), same_screen YES,
    XLookupString gives 2 bytes: (c2 b4) "´"
    XFilterEvent returns: False

KeyPress event, serial 40, synthetic NO, window 0x800001,
    root 0xdb, subw 0x0, time 444470041, (-1603,615), root:(217,676),
    state 0x0, keycode 26 (keysym 0x65, e), same_screen YES,
    XLookupString gives 1 bytes: (65) "e"
    XmbLookupString gives 1 bytes: (65) "e"
    XFilterEvent returns: True

KeyPress event, serial 40, synthetic NO, window 0x800001,
    root 0xdb, subw 0x0, time 444470041, (-1603,615), root:(217,676),
    state 0x0, keycode 0 (keysym 0xe9, eacute), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 2 bytes: (c3 a9) "é"
    XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x800001,
    root 0xdb, subw 0x0, time 444470098, (-1603,615), root:(217,676),
    state 0x0, keycode 26 (keysym 0x65, e), same_screen YES,
    XLookupString gives 1 bytes: (65) "e"
    XFilterEvent returns: False

(note how there's an extra KeyPress I had never noticed before)

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list