Regarding to redhat bug report this should be fixed with swaylock-1.6-1.fc34, which is not in Ubuntu 22.04.4 LTS
Regarding to redhat bug report this should be fixed with swaylock- 1.6-1.fc34, which is not in Ubuntu 22.04.4 LTS