a6e3421
From 7dbfdfa03d173d2e969880db4271d624992c2d75 Mon Sep 17 00:00:00 2001
a6e3421
From: fujiwarat <takao.fujiwara1@gmail.com>
a6e3421
Date: Fri, 17 Mar 2023 22:29:56 +0900
a6e3421
Subject: [PATCH] ui/gtk3: Add workaround Emojier can be launched
a6e3421
a6e3421
gnome-shell 44 prevents ibus from launching Emojier GUI.
a6e3421
This workaround can launch the Emojier but still cannot output
a6e3421
the selected emoji character to the focused application.
a6e3421
a6e3421
So another workaround is needed with this patch.
a6e3421
I.e. Type Ctrl-Shift-c keys to copy the seleted emoji instead of
a6e3421
Enter key.
a6e3421
a6e3421
BUG=https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6518
a6e3421
---
a6e3421
 ui/gtk3/emojier.vala | 7 +++----
a6e3421
 1 file changed, 3 insertions(+), 4 deletions(-)
a6e3421
a6e3421
diff --git a/ui/gtk3/emojier.vala b/ui/gtk3/emojier.vala
a6e3421
index 69fb8abe..c9cf4469 100644
a6e3421
--- a/ui/gtk3/emojier.vala
a6e3421
+++ b/ui/gtk3/emojier.vala
a6e3421
@@ -2,7 +2,7 @@
a6e3421
  *
a6e3421
  * ibus - The Input Bus
a6e3421
  *
a6e3421
- * Copyright (c) 2017-2021 Takao Fujiwara <takao.fujiwara1@gmail.com>
a6e3421
+ * Copyright (c) 2017-2023 Takao Fujiwara <takao.fujiwara1@gmail.com>
a6e3421
  *
a6e3421
  * This library is free software; you can redistribute it and/or
a6e3421
  * modify it under the terms of the GNU Lesser General Public
a6e3421
@@ -1799,12 +1799,12 @@ public class IBusEmojier : Gtk.ApplicationWindow {
a6e3421
 
a6e3421
         m_rebuilding_gui = true;
a6e3421
         m_rebuilding_gui_timeout_id =
a6e3421
-                GLib.Timeout.add_seconds(10, () => {
a6e3421
+                GLib.Timeout.add_seconds(5, () => {
a6e3421
                     if (!m_rebuilding_gui) {
a6e3421
                         m_rebuilding_gui_timeout_id = 0;
a6e3421
                         return false;
a6e3421
                     }
a6e3421
-                    warning("Rebuilding GUI is time out.");
a6e3421
+                    debug("Rebuilding GUI is time out.");
a6e3421
                     m_rebuilding_gui = false;
a6e3421
                     m_rebuilding_gui_timeout_id = 0;
a6e3421
                     return false;
a6e3421
@@ -2459,7 +2459,6 @@ public class IBusEmojier : Gtk.ApplicationWindow {
a6e3421
 
a6e3421
 
a6e3421
     public override bool focus_in_event(Gdk.EventFocus event) {
a6e3421
-        m_rebuilding_gui = false;
a6e3421
         return base.focus_in_event(event);
a6e3421
     }
a6e3421
 
a6e3421
-- 
a6e3421
2.39.2
a6e3421