[imquartz] Return event window for mouse events in keypress filter.

Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1600
This commit is contained in:
John Ralls 2019-01-21 07:31:52 -08:00
parent a02de1c9d9
commit a93daa0373

View File

@ -196,7 +196,7 @@ quartz_filter_keypress (GtkIMContext *context,
{
if (event->hardware_keycode == 0 && event->keyval == 0xffffff)
/* update text input changes by mouse events */
return output_result (context, win);
return output_result (context, event->win);
else
return gtk_im_context_filter_keypress (qc->slave, event);
}