Skip to content

Commit

Permalink
Activate mozc on launch even for IBus>=1.5.0
Browse files Browse the repository at this point in the history
Because I want hiragana mode on launch.
google/mozc#381
  • Loading branch information
hnakamur committed Mar 23, 2018
1 parent b2a4d7a commit 78bfcfc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions debian/patches/activate-on-launch.patch
@@ -0,0 +1,22 @@
From: Hiroaki Nakamura <hnakamur@gmail.com>
Date: Fri, 23 Mar 2018 12:05:00 +0900
Subject: Activate on launch for IBus>=1.5.0 too

https://github.com/google/mozc/issues/381
---
src/unix/ibus/property_handler.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/unix/ibus/property_handler.cc b/src/unix/ibus/property_handler.cc
index cd2c77c..f066453 100644
--- a/src/unix/ibus/property_handler.cc
+++ b/src/unix/ibus/property_handler.cc
@@ -80,7 +80,7 @@ bool GetDisabled(IBusEngine *engine) {
// On IBus 1.4.x, IBus expects that an IME should always be turned on and
// IME on/off keys are handled by IBus itself rather than each IME.
#if IBUS_CHECK_VERSION(1, 5, 0)
-const bool kActivatedOnLaunch = false;
+const bool kActivatedOnLaunch = true;
#else
const bool kActivatedOnLaunch = true;
#endif // IBus>=1.5.0
1 change: 1 addition & 0 deletions debian/patches/series
Expand Up @@ -2,3 +2,4 @@ uim-mozc.patch
fcitx-mozc.patch
gcc.patch
usage_dict.txt.patch
activate-on-launch.patch

0 comments on commit 78bfcfc

Please sign in to comment.