Follows #1 (comment 10575).
Related upstream issue for GTK 4: https://gitlab.gnome.org/GNOME/gtk/-/issues/3814