Blame SOURCES/ibus-810211-no-switch-by-no-trigger.patch

7a4110
From d3bc903b487bb301395947f692ce0d8c130874e3 Mon Sep 17 00:00:00 2001
7a4110
From: fujiwarat <takao.fujiwara1@gmail.com>
7a4110
Date: Sat, 6 Oct 2012 17:54:27 +0900
7a4110
Subject: [PATCH] Fix not to switch engines by non-trigger keys.
7a4110
7a4110
---
7a4110
 ui/gtk3/switcher.vala | 6 ++++++
7a4110
 1 file changed, 6 insertions(+)
7a4110
7a4110
diff --git a/ui/gtk3/switcher.vala b/ui/gtk3/switcher.vala
7a4110
index 4a02743..c606682 100644
7a4110
--- a/ui/gtk3/switcher.vala
7a4110
+++ b/ui/gtk3/switcher.vala
7a4110
@@ -140,6 +140,7 @@ class Switcher : Gtk.Window {
7a4110
         /* Let gtk recalculate the window size. */
7a4110
         resize(1, 1);
7a4110
 
7a4110
+        m_result = 0;
7a4110
         m_selected_engine = index;
7a4110
         m_label.set_text(m_buttons[index].longname);
7a4110
         m_buttons[index].grab_focus();
7a4110
@@ -378,6 +379,11 @@ class Switcher : Gtk.Window {
7a4110
                     break;
7a4110
                 default:
7a4110
                     debug("0x%04x", pe->keyval);
7a4110
+                    if (m_loop != null) {
7a4110
+                        m_loop.quit();
7a4110
+                        m_loop = null;
7a4110
+                    }
7a4110
+                    retval = false;
7a4110
                     break;
7a4110
             }
7a4110
         } while (false);
7a4110
-- 
7a4110
1.8.0
7a4110