Open RevoSucks opened 4 years ago
What.
This one confused me quite a bit too
SDL2 blocks the compositor which stops the task bar from updating disabling the compositor or disabling composition blocking will fix that
Interesting. Wonder if it's possible to stop SDL2 from doing that. There should apparently be a system wide setting to disallow applications from disabling compositing altogether:
You can also apparently do this.
To be fair for most fullscreen games you want it disabled. Might need to file a bug against upstream Plasma for the clock not updating
Its not even the executable stopping the clock from updating. It straight up replaces the time with another one temporarily.
I can confirm turning off Allow applications to block compositing fixes my issue, but this is still weird.
Cannot replicate on Arch
It disables compositing and the time still works as expected (Confirmed compositing is off by dragging a window and have no transparency)
There's been quite a few updates recently. Is your system for sure up to date on packages?
I can replicate this on my Fedora 32 system running KDE Plasma 5.18.5 with KWin and composting enabled and blocking allowed. This isn't a bug this is expected behavior from SDL2 see https://bugs.kde.org/show_bug.cgi?id=371480
This therefore isn't a bug with the repo, but a result of weird behavior with SDL2 in general.
This is a known bug with KDE Plasma and Nvidia drivers. When games disable the compositor all Plasma Widgets get frozen until you enable it again. A workaround is to run: "kwin_x11 --replace" in Krunner whenever widgets freeze. Nvidia have recently confirmed that they are aware of the bug which is promising as it has existed for 5+ years.
That would explain it. AMD here :D
If you use https://github.com/Emill/n64-fast3d-engine/blob/master/gfx_glx.c on Linux, as originally intended, rather than the SDL2 version (that was meant as a last resort), you don't get this problem since gfx_glx.c does not modify the compositing settings. If you want to toggle compositing you can use Alt+Shift+F12 anyway.
When building the repository as-is with no modifications, running the executable for some reason updates the toolbar's displayed time to 6:24 AM (obviously wrong) and it stays there until the executable is closed.
I am running KDE Plasma as my display manager.
OS:
Steps to reproduce:
It's not the underlying time that updates, as I opened a different terminal and did timedatectl status and it shows the correct time underneath.