Hi Tim, I used to have this issue and I remember solving it by closing PixInsight and reopening it. It was very sporadic and could not find why happens.
As you say, when it happens, only one of the X in the title bar works. Closing and reopening the tool shows it in the same way.
Also KDE
Saludos, Alejandro.