Skip to content

Commit

Permalink
ui/gtk3: Add workaround Emojier can be launched
Browse files Browse the repository at this point in the history
gnome-shell 44 prevents ibus from launching Emojier GUI.
This workaround can launch the Emojier but still cannot output
the selected emoji character to the focused application.

So another workaround is needed with this patch.
I.e. Type Ctrl-Shift-c keys to copy the seleted emoji instead of
Enter key.

BUG=#2509
BUG=https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6518
  • Loading branch information
fujiwarat committed May 2, 2023
1 parent 67a0f36 commit 310c442
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ui/gtk3/emojier.vala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* ibus - The Input Bus
*
* Copyright (c) 2017-2021 Takao Fujiwara <takao.fujiwara1@gmail.com>
* Copyright (c) 2017-2023 Takao Fujiwara <takao.fujiwara1@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -1799,12 +1799,12 @@ public class IBusEmojier : Gtk.ApplicationWindow {

m_rebuilding_gui = true;
m_rebuilding_gui_timeout_id =
GLib.Timeout.add_seconds(10, () => {
GLib.Timeout.add_seconds(5, () => {
if (!m_rebuilding_gui) {
m_rebuilding_gui_timeout_id = 0;
return false;
}
warning("Rebuilding GUI is time out.");
debug("Rebuilding GUI is time out.");
m_rebuilding_gui = false;
m_rebuilding_gui_timeout_id = 0;
return false;
Expand Down Expand Up @@ -2459,7 +2459,6 @@ public class IBusEmojier : Gtk.ApplicationWindow {


public override bool focus_in_event(Gdk.EventFocus event) {
m_rebuilding_gui = false;
return base.focus_in_event(event);
}

Expand Down

0 comments on commit 310c442

Please sign in to comment.