Debugging in Rider on Ubuntu Linux (gnome) causes editor or game to freeze on breakpoints, causing no mouse to appear

For anyone still having this problem, this is the correct solution Unable to Click in Rider/UE 5.6 when Breakpoint Hit (KDE)