From a93daa0373eff71b52101f40028b3ea53d55f647 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Mon, 21 Jan 2019 07:31:52 -0800 Subject: [PATCH] [imquartz] Return event window for mouse events in keypress filter. Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1600 --- modules/input/imquartz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/input/imquartz.c b/modules/input/imquartz.c index bc2d895775..84bf0e26ea 100644 --- a/modules/input/imquartz.c +++ b/modules/input/imquartz.c @@ -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); }