[gtk/gtk-3-24] [imquartz] Return event window for mouse events in keypress filter.



commit a93daa0373eff71b52101f40028b3ea53d55f647
Author: John Ralls <jralls ceridwen us>
Date:   Mon Jan 21 07:31:52 2019 -0800

    [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);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]