diff options
author | fujiwarat <takao.fujiwara1@gmail.com> | 2019-01-08 12:02:37 +0900 |
---|---|---|
committer | fujiwarat <takao.fujiwara1@gmail.com> | 2019-01-08 12:02:37 +0900 |
commit | be7fb813e530442897a9f9130b8a26380e5a12a1 (patch) | |
tree | 30c71eeddb81c6e397cb74ab1be838b44ff98285 | |
parent | 60e246ef1593f599e2103070f8fa02649d60ada1 (diff) | |
download | ibus-be7fb813e530442897a9f9130b8a26380e5a12a1.tar.gz |
client/gtk2: Fix Atom and Slack for Flatpak
Seems Atom, slack, com.visualstudio.code does not enable
gtk_key_snooper_install() and this issue causes to call
gtk_im_context_filter_keypress instead of calling ibus APIs.
BUG=https://github.com/ibus/ibus/issues/1991
-rw-r--r-- | client/gtk2/ibusimcontext.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/gtk2/ibusimcontext.c b/client/gtk2/ibusimcontext.c index f9310867..264a747a 100644 --- a/client/gtk2/ibusimcontext.c +++ b/client/gtk2/ibusimcontext.c @@ -565,6 +565,10 @@ daemon_name_appeared (GDBusConnection *connection, const gchar *owner, gpointer data) { + if (!g_strcmp0 (ibus_bus_get_service_name (_bus), IBUS_SERVICE_PORTAL)) { + _daemon_is_running = TRUE; + return; + } /* If ibus-daemon is running and run ssh -X localhost, * daemon_name_appeared() is called but ibus_get_address() == NULL * because the hostname and display number are different between |