Subject: bug#74423: Low level key events

From: Cecilio Pardo <[email-masked]>
Date: Sat, 14 Dec 2024 10:26:23 +0100

On 14/12/2024 2:16, Po Lu wrote:
> Cecilio Pardo <[email-masked]> writes:
> 
>> +#ifndef HAVE_XINPUT2
>> +static void
>> +xg_maybe_send_low_level_key_event (struct frame *f,
>> +				   GdkEvent *xev)
>> +{
>> +  GdkEventKey xkey = xev->key;

> Why is this !HAVE_XINPUT2?  GTK input method support exists
> independently of XInput 2.

When XInput 2 is active, we get the event through it (XI_KeyPress) 
first. That gives the information we need. The GTK code is used when 
there is no XInput and use_native_input is active.