This may apply to many setups, but my specifics are: Fedora (Linux), Gnome desktop running Wayland. I have a self-hosted Matrix server and connect with an Element client from my Fedora machine.
The Element client would work when it first opened but after sitting idle for a while, when I’d pull it up again, the entire app was just blank; it would be all whited out. So, I’d have to close it and reopen it.
Well not any more!
All I needed to do was launch it with the ELECTRON_DISABLE_GPU
set to 1
. That was made permanent by running this:
sudo flatpak override im.riot.Riot --env=ELECTRON_DISABLE_GPU=1
That’s all there is to it! Now it runs and continues to render the screen.