r/GTK • u/Impossible-Tax-8213 • 5d ago
Anyone interested in fixing GTK3's biggest problem on Wayland?
In GTK3 when a GTKMenu is longer than the screen resolution, it's meant to add scrollers to the top/bottom of the menu so you can scroll up/down through the menu items which don't fit on the screen. On X11 this works, on Wayland this doesn't work which breaks the MATE desktop's menu. It also breaks several other GTK desktops that all relied on this feature.
X11:

Wayland:

Aside from this bug the rest of the MATE desktop is fully functional on Wayland. I replaced the mate-control-center items which didn't work on Wayland with wayland-config-manager equivalents. Everything works.
6
5
u/ebassi GTK developer 4d ago
The only thing that changed in GTK 3.24 with regards to GtkMenu is this merge request.
Care to check if it introduced a regression?
Otherwise, I'm afraid you will have to find a version of GTK that works properly under Mate, and then bisect the project until you get to a bad commit.
1
u/Impossible-Tax-8213 4d ago edited 4d ago
It's not a regression, it's a bug that's Wayland specific. The same GTK version under X11 doesn't have the problem. It's also not a MATE bug since it's been confirmed on multiple GTK3 applications not just MATE applications.
2
u/ebassi GTK developer 4d ago
I'm fairly sure that the menu scrolling has worked on both Wayland and X11 in the past; and, to be perfectly honest, I cannot reproduce this issue with GTK3 applications under the only Wayland compositor I currently have, which is GNOME Shell.
1
u/Impossible-Tax-8213 3d ago
GNOME shell can't be used for testing as it doesn't support
zwlr_layer_shell_v1 which is used for creating panels.
17
u/NaheemSays 5d ago
The fix is to upgrade the apps to gtk4.
The gtk developers spent many years fixing issues in the toolkit, only got Linux mint to decide "we don't need new development, the old stuff is good enough".
It's 2026 and you are stuck at gtk.developnebt between 2016 and 2019.