https://bugzilla.redhat.com/show_bug.cgi?id=2054680
Bug ID: 2054680 Summary: workaround gtk4 preferring ibus-gtk4 to Wayland input protocol Product: Fedora Version: rawhide Status: NEW Component: ibus Assignee: tfujiwar@redhat.com Reporter: petersen@redhat.com QA Contact: extras-qa@fedoraproject.org CC: i18n-bugs@lists.fedoraproject.org, shawn.p.huang@gmail.com, tfujiwar@redhat.com Target Milestone: --- Classification: Fedora
Description of problem: Currently in Fedora WS Wayland Gnome, gtk4 prefers ibus-gtk4 to the Wayland protocol - which causes the candidate window to be badly placed. (However we need ibus-gtk4 for Xorg sessions.)
Seems a workaround might be to patch:
--- ibus-1.5.24/client/gtk4/ibusim.c.orig 2021-07-30 23:12:21.747541875 +0900 +++ ibus-1.5.24/client/gtk4/ibusim.c 2021-07-31 01:55:43.785097447 +0900 @@ -34,10 +34,13 @@ g_io_im_ibus_load (GTypeModule *type_mod if (!inited) { ibus_init (); ibus_im_context_register_type (type_module); + /* "wayand" prority is 0 and "gtk-im-context-simple" one is G_MININT, + * "ibus" one is -100 here. + */ g_io_extension_point_implement ("gtk-im-module", IBUS_TYPE_IM_CONTEXT, "ibus", - 50); + -100); inited = TRUE; } /* make module resident */
But does this cause some problems?
https://bugzilla.redhat.com/show_bug.cgi?id=2054680
--- Comment #1 from Jens Petersen petersen@redhat.com --- (related upstream gtk4 issue:
https://gitlab.gnome.org/GNOME/gtk/-/issues/4699 )
https://bugzilla.redhat.com/show_bug.cgi?id=2054680
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|unspecified |high Severity|unspecified |medium
https://bugzilla.redhat.com/show_bug.cgi?id=2054680
Red Hat One Jira (issues.redhat.com) redhat-one-jira@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Link ID| |Red Hat Issue Tracker | |FC-401
https://bugzilla.redhat.com/show_bug.cgi?id=2054680
fujiwara tfujiwar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|high |low
--- Comment #2 from fujiwara tfujiwar@redhat.com --- There is no GTK4 applications. I also think GNOME will change the priority if ibus-gtk4 will be installed by default.
https://bugzilla.redhat.com/show_bug.cgi?id=2054680
--- Comment #3 from Jens Petersen petersen@redhat.com --- (In reply to fujiwara from comment #2)
There is no GTK4 applications.
Well in Fedora 36:
$ rpm -e gtk4 |& grep libgtk-4 libgtk-4.so.1()(64bit) is needed by (installed) libadwaita-1.1~beta-1.fc36.x86_64 libgtk-4.so.1()(64bit) is needed by (installed) gnome-bluetooth-libs-1:42~rc-1.fc36.x86_64 libgtk-4.so.1()(64bit) is needed by (installed) gnome-bluetooth-1:42~rc-1.fc36.x86_64 libgtk-4.so.1()(64bit) is needed by (installed) gnome-desktop4-42~beta-3.fc36.x86_64 libgtk-4.so.1()(64bit) is needed by (installed) xdg-desktop-portal-gnome-42~rc-1.fc36.x86_64 libgtk-4.so.1()(64bit) is needed by (installed) gtksourceview5-5.3.2-3.fc36.x86_64 libgtk-4.so.1()(64bit) is needed by (installed) baobab-42~rc-1.fc36.x86_64 libgtk-4.so.1()(64bit) is needed by (installed) gnome-tour-42~beta-1.fc36.x86_64 libgtk-4.so.1()(64bit) is needed by (installed) colord-gtk4-0.3.0-1.fc36.x86_64 libgtk-4.so.1()(64bit) is needed by (installed) libnma-gtk4-1.8.34-1.fc36.1.x86_64 libgtk-4.so.1()(64bit) is needed by (installed) gnome-control-center-42~rc-1.fc36.x86_64 libgtk-4.so.1()(64bit) is needed by (installed) gnome-shell-42~rc-2.fc36.x86_64 libgtk-4.so.1()(64bit) is needed by (installed) gnome-contacts-42~alpha-2.fc36.x86_64 libgtk-4.so.1()(64bit) is needed by (installed) gnome-calendar-42~rc-1.fc36.x86_64 libgtk-4.so.1()(64bit) is needed by (installed) gnome-calculator-42~rc-1.fc36.x86_64 libgtk-4.so.1()(64bit) is needed by (installed) gnome-text-editor-42~rc1-1.fc36.x86_64 libgtk-4.so.1()(64bit) is needed by (installed) gnome-software-42~rc-2.fc36.x86_64 libgtk-4.so.1()(64bit) is needed by (installed) gnome-clocks-42~beta-1.fc36.x86_64 libgtk-4.so.1()(64bit) is needed by (installed) gnome-font-viewer-42~rc-1.fc36.x86_64
I also think GNOME will change the priority if ibus-gtk4 will be installed by default.
It needs to be installed by default for Xorg sessions.
https://bugzilla.redhat.com/show_bug.cgi?id=2054680
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |i18n
https://bugzilla.redhat.com/show_bug.cgi?id=2054680
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |NOTABUG Status|NEW |CLOSED Last Closed| |2022-04-12 02:35:16
--- Comment #4 from Jens Petersen petersen@redhat.com --- I believe gtk4 is now fixed so this is no longer needed.
https://bugzilla.redhat.com/show_bug.cgi?id=2054680
--- Comment #5 from Jens Petersen petersen@redhat.com --- Tested in Fedora-Workstation-Live-x86_64-36-20220410.n.0.iso
i18n-bugs@lists.fedoraproject.org