Description of problem:
I installed SDL2 and tried some windowed SDL2 programs using "SDL_VIDEODRIVER=wayland", and found that window decoration was still missing.
After digging around, some head scratching, and looking through the SDL2 code, I found that it depends on an external libdecor.
I found libdecor in the Fedora repo, and installed it, and lo and behold, it worked.
So as I see it, there are two solutions. Either SDL2 should depend on libdecor, or every windowed SDL2 program should depend on libdecor.
To me, the former seems better than the latter.
Now, SDL2 is still defaulting to X11 on Wayland, so for the moment this will only effect a subset of users that set the SDL_VIDEODRIVER environment variable.
Version-Release number of selected component (if applicable):
$ rpm -qa|grep "SDL2\|libdecor"
Every time, unless libdecor is installed
Steps to Reproduce:
1. Update to SDL 2.0.16, but don't install libdecor
2. run windowed SDL program with SDL_VIDEODRIVER=wayland
No window decoration
You're right, SDL2 should depend on libdecor. I guess SDL does it via dlopen() rather than normal dynamic linking.
FEDORA-2021-784ff5db5c has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-784ff5db5c
FEDORA-2021-784ff5db5c has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-784ff5db5c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-784ff5db5c
See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-784ff5db5c has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.