Comment by tgaj
Yes, I understand the cause of this problem is in GTK - (https://gitlab.gnome.org/GNOME/gtk/-/issues/4340). So yeah, upgrade to latest Ubuntu should help. Probably worth to check first if latest Ubuntu use GTK version with this patch.
Let's see, looks like it has been merged in a 3.24.x release, Ubuntu 21.10 is already on 3.24 but most probably the patch didn't land in an official repo bugfix version.