Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 845129 - x11-libs/gtk+: x11-wm/mutter-42.1 breaks wheel scrolling in various text editing widgets (under wayland)
Summary: x11-libs/gtk+: x11-wm/mutter-42.1 breaks wheel scrolling in various text edit...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-17 06:05 UTC by Rémi Cardona
Modified: 2022-05-19 21:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rémi Cardona 2022-05-17 06:05:28 UTC
When running in a mutter-42.1/wayland session, gtk3 and 4 apps displaying text editing widgets (GtkTextView or even the external GtkSourceView) display weird behaviors.

Scrolling with the wheel mouse will "snap" back the view to where the text cursor is currently located. IOW, in Gedit or gnome-text-editor it's not possible for the text cursor to be at one end of a long text and to scroll to the other end of said file.

https://gitlab.gnome.org/GNOME/mutter/-/issues/2261

Gtk 4.6.4 fixes the issue but gtk3 needs to be patched: https://gitlab.gnome.org/GNOME/gtk/-/commit/5321fa25a52f9d91ed0c2f5ec59afbd8fd2f770a

Reproducible: Always
Comment 1 Kobboi 2022-05-17 14:25:09 UTC
Same here but wasn't able to really pin down when it happened
Comment 2 Larry the Git Cow gentoo-dev 2022-05-18 23:02:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1e3d71fa444da7ee988fe771cc26caae0067f61

commit e1e3d71fa444da7ee988fe771cc26caae0067f61
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2022-05-18 22:57:39 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2022-05-18 23:02:14 +0000

    x11-libs/gtk+: Version bump to 3.24.34
    
    Closes: https://bugs.gentoo.org/845129
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 x11-libs/gtk+/Manifest            |   1 +
 x11-libs/gtk+/gtk+-3.24.34.ebuild | 249 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 250 insertions(+)
Comment 3 Mart Raudsepp gentoo-dev 2022-05-19 06:15:41 UTC
What do you think about soft-blocking problematic gtk of both slot in mutter-42.1 and onwards?
Comment 4 Matt Turner gentoo-dev 2022-05-19 16:59:13 UTC
(In reply to Mart Raudsepp from comment #3)
> What do you think about soft-blocking problematic gtk of both slot in
> mutter-42.1 and onwards?

How's this?

--- a/x11-wm/mutter/mutter-42.1.ebuild
+++ b/x11-wm/mutter/mutter-42.1.ebuild
@@ -79,6 +79,9 @@ DEPEND="
 "
 RDEPEND="${DEPEND}
        gnome-extra/zenity
+
+       <!gui-libs/gtk-4.6.4:4
+       <!x11-libs/gtk+-3.24.34:3
 "
 DEPEND="${DEPEND}
        x11-base/xorg-proto

Revision bump needed, I think?
Comment 5 Mart Raudsepp gentoo-dev 2022-05-19 17:20:25 UTC
Looks good to me, but didn't test portage with it.
I don't know about revbump, I wouldn't, but that's me.
Comment 6 Larry the Git Cow gentoo-dev 2022-05-19 18:54:21 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fdcff9f5dbd9bb2a34db5f67cbf77c315df4100

commit 9fdcff9f5dbd9bb2a34db5f67cbf77c315df4100
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2022-05-19 16:58:54 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2022-05-19 18:54:14 +0000

    x11-wm/mutter: Block buggy GTK versions
    
    Bug: https://bugs.gentoo.org/845129
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 x11-wm/mutter/mutter-42.1.ebuild | 3 +++
 1 file changed, 3 insertions(+)
Comment 7 Rémi Cardona 2022-05-19 21:40:48 UTC
Thanks guys, cheers!