Merge pull request #320 from ti-mo/postlock-race

Run prelock and postlock synchronously to avoid race condition
This commit is contained in:
Basti 2022-02-23 23:00:41 +01:00 committed by GitHub
commit 0d4b898324
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -277,7 +277,7 @@ postlock() {
lockselect() {
echof act "Running prelock..."
prelock &
prelock
case "$1" in
dim) if [ -f "$CUR_L_DIM" ]; then lock "$CUR_L_DIM"; else failsafe; fi ;;
@ -290,7 +290,7 @@ lockselect() {
esac
echof act "Running postlock..."
postlock &
postlock
}
# calculate adjustments for hidpi displays