Fix native input when using core input events
* src/gtkutil.c (xg_filter_key): Test for core key press events correctly. * src/xterm.c (handle_one_xevent): Also check for KeyRelease events.
This commit is contained in:
parent
1f5f3b7e89
commit
9845f6b9aa
2 changed files with 2 additions and 1 deletions
|
@ -6262,7 +6262,7 @@ xg_widget_key_press_event_cb (GtkWidget *widget, GdkEvent *event,
|
|||
bool
|
||||
xg_filter_key (struct frame *frame, XEvent *xkey)
|
||||
{
|
||||
GdkEvent *xg_event = gdk_event_new ((xkey->type == ButtonPress
|
||||
GdkEvent *xg_event = gdk_event_new ((xkey->type == KeyPress
|
||||
#ifdef HAVE_XINPUT2
|
||||
|| (xkey->type == GenericEvent
|
||||
&& xkey->xgeneric.evtype == XI_KeyPress)
|
||||
|
|
|
@ -8373,6 +8373,7 @@ x_filter_event (struct x_display_info *dpyinfo, XEvent *event)
|
|||
#ifdef USE_GTK
|
||||
}
|
||||
else if (f1 && (event->type == KeyPress
|
||||
|| event->type == KeyRelease
|
||||
#ifdef HAVE_XINPUT2
|
||||
|| xinput_event
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue