imquartz: Fallback to slave IM context if no NSEvent exists.
imquartz: Fallback to slave IM context if no NSEvent exists.

When an application translates a key event and drop its native event
before passing to imquartz, it can't recognize the NSEvent. On this
case imquartz doesn't emit any signals such as "commit" signal so
that the application doesn't insert any text. To avoid no response,
at least imquartz should fallback to slave GtkIMContextSimple.

https://bugzilla.gnome.org/show_bug.cgi?id=694273#c27
(cherry picked from commit c064e188943ad6bd79d8476a0f53e27bfddb4a1f)

msteinert/gtk,ahodesuka/gtk,jessevdk/gtk,alexlarsson/gtk,grubersjoe/adwaita,ebassi/gtk,bratsche/gtk-,jadahl/gtk,chergert/gtk,Lyude/gtk-,chergert/gtk,alexlarsson/gtk,alexlarsson/gtk,jadahl/gtk,Sidnioulz/SandboxGtk,Lyude/gtk-,Sidnioulz/SandboxGtk,jigpu/gtk,ahodesuka/gtk,alexlarsson/gtk,grubersjoe/adwaita,Lyude/gtk-,Lyude/gtk-,jigpu/gtk,jigpu/gtk,jigpu/gtk,grubersjoe/adwaita,Adamovskiy/gtk,ahodesuka/gtk,jessevdk/gtk,Adamovskiy/gtk,msteinert/gtk,grubersjoe/adwaita,grubersjoe/adwaita,jessevdk/gtk,Sidnioulz/SandboxGtk,Lyude/gtk-,davidgumberg/gtk,Lyude/gtk-,bratsche/gtk-,grubersjoe/adwaita,ahodesuka/gtk,jessevdk/gtk,chergert/gtk,jessevdk/gtk,davidgumberg/gtk,msteinert/gtk,chergert/gtk,bratsche/gtk-,grubersjoe/adwaita,chergert/gtk,Adamovskiy/gtk,Lyude/gtk-,Sidnioulz/SandboxGtk,ahodesuka/gtk,davidgumberg/gtk,ebassi/gtk,jessevdk/gtk,jadahl/gtk,Adamovskiy/gtk,ebassi/gtk,jadahl/gtk,Adamovskiy/gtk,davidgumberg/gtk,bratsche/gtk-,alexlarsson/gtk,jadahl/gtk,msteinert/gtk,ebassi/gtk,chergert/gtk,alexlarsson/gtk,bratsche/gtk-,davidgumberg/gtk,alexlarsson/gtk,msteinert/gtk,davidgumberg/gtk,ebassi/gtk,jigpu/gtk,Sidnioulz/SandboxGtk,grubersjoe/adwaita,Sidnioulz/SandboxGtk,davidgumberg/gtk,Adamovskiy/gtk,Lyude/gtk-,Adamovskiy/gtk,jigpu/gtk,jigpu/gtk,Adamovskiy/gtk,jadahl/gtk,jigpu/gtk,ahodesuka/gtk,chergert/gtk,davidgumberg/gtk,ahodesuka/gtk,jadahl/gtk,jessevdk/gtk,chergert/gtk,ebassi/gtk,msteinert/gtk,jadahl/gtk,alexlarsson/gtk,ahodesuka/gtk,bratsche/gtk-