Bug#1146833: OSK unfolds way too often as gtk4 sends too many text_input.enable() events
Guido Günther
agx at sigxcpu.org
Sun Sep 6 08:36:38 BST 2026
Package: libgtk-4-1
Version: 4.23.4+ds-4
Severity: grave
Tags: upstream
gtk 4.23.1 (and later) sends zwp_text_input_v3#57.enable() enable events
not only when focusing input fields (like GtkEntry) but also when
e.g. touching in the demo selection in gtk4-demo (and many other
places):
[3397846.921] {Default Queue} -> zwp_text_input_v3#57.enable()
[3397846.965] {Default Queue} -> zwp_text_input_v3#57.set_surrounding_text("", 0, 0)
[3397846.979] {Default Queue} -> zwp_text_input_v3#57.set_text_change_cause(1)
[3397847.111] {Default Queue} -> zwp_text_input_v3#57.set_content_type(0, 0)
[3397847.146] {Default Queue} -> zwp_text_input_v3#57.set_cursor_rectangle(0, 0, 0, 0)
This leads to the OSK unfolding on each enable (in e.g. Phosh) making
the apps mostly unusable.
The text-input protocol bound is still version 1 though:
[3566470.552] {Default Queue} wl_registry#2.global(25, "zwp_text_input_manager_v3", 1)
This does not happen in older GTK4 versions like 4.22.4
As this makes using any GTK4 app on touch systems mostly impossible to
use, I picked a severe severity to keep it out of testing for the moment
(please adjust as appropriate). I hope to get around to look into a fix
soon.
Upstream reference:
https://gitlab.gnome.org/GNOME/gtk/-/work_items/8349
Cheers,
-- Guido
-- System Information:
Debian Release: forky/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, arm64
Kernel: Linux 7.1.3+deb14-amd64 (SMP w/22 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages libgtk-4-1 depends on:
ii adwaita-icon-theme 50.0-2
ii hicolor-icon-theme 0.18-2
ii libc6 2.43-3
ii libcairo-gobject2 1.18.4-3+b1
ii libcairo-script-interpreter2 1.18.4-3+b1
ii libcairo2 1.18.4-3+b1
ii libcloudproviders0 0.4.0-2+b1
ii libcolord2 1.4.8-2
ii libcups2t64 2.4.18-1
ii libepoxy0 1.5.10-2+b2
ii libfontconfig1 2.17.1-5
ii libfribidi0 1.0.16-5+b1
ii libgdk-pixbuf-2.0-0 2.44.7+dfsg-1
ii libgles2 1.7.0-3+b1
ii libglib2.0-0t64 2.89.3-4
ii libgraphene-1.0-0 1.10.8-5+b2
ii libgstreamer-gl1.0-0 1.28.5-1
ii libgstreamer-plugins-bad1.0-0 1.28.5-2
ii libgstreamer-plugins-base1.0-0 1.28.5-1
ii libgstreamer1.0-0 1.28.4-2
ii libgtk-4-common 4.23.2+ds-1
ii libharfbuzz-subset0 12.3.2-2+b2
ii libharfbuzz0b 12.3.2-2+b2
ii libjpeg62-turbo 1:3.1.3-4
ii libpango-1.0-0 1.58.0-1
ii libpangocairo-1.0-0 1.58.0-1
ii libpangoft2-1.0-0 1.58.0-1
ii libpng16-16t64 1.6.58-1
ii libtiff6 4.7.2-1
ii libvulkan1 1.4.341.0-1
ii libwayland-client0 1.26.0-1
ii libwayland-egl1 1.26.0-1
ii libx11-6 2:1.8.13-1
ii libxcursor1 1:1.2.3-1+b2
ii libxdamage1 1:1.1.7-1+b1
ii libxext6 2:1.3.4-1+b4
ii libxfixes3 1:6.0.0-2+b5
ii libxi6 2:1.8.2-2+b1
ii libxinerama1 2:1.1.4-3+b5
ii libxkbcommon0 1.13.1-1
ii libxrandr2 2:1.5.4-1+b4
ii shared-mime-info 2.4-5+b3
Versions of packages libgtk-4-1 recommends:
ii ibus-gtk4 1.5.34-1
ii iso-codes 4.20.1-1
ii libgtk-4-bin 4.22.4+ds-1
ii librsvg2-common 2.62.1+dfsg-1
Versions of packages libgtk-4-1 suggests:
ii gvfs 1.60.0-2
Versions of packages libgtk-4-1 is related to:
pn fcitx5-frontend-gtk4 <none>
ii ibus-gtk4 1.5.34-1
pn libgtk-nocsd0 <none>
pn scim-gtk-immodule <none>
-- no debconf information
More information about the pkg-gnome-maintainers
mailing list