mirror of
https://git.adityakumar.xyz/betterlockscreen-openrc.git
synced 2024-11-22 06:52:53 +00:00
Merge pull request #320 from ti-mo/postlock-race
Run prelock and postlock synchronously to avoid race condition
This commit is contained in:
commit
0d4b898324
1 changed files with 2 additions and 2 deletions
|
@ -277,7 +277,7 @@ postlock() {
|
||||||
lockselect() {
|
lockselect() {
|
||||||
|
|
||||||
echof act "Running prelock..."
|
echof act "Running prelock..."
|
||||||
prelock &
|
prelock
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
dim) if [ -f "$CUR_L_DIM" ]; then lock "$CUR_L_DIM"; else failsafe; fi ;;
|
dim) if [ -f "$CUR_L_DIM" ]; then lock "$CUR_L_DIM"; else failsafe; fi ;;
|
||||||
|
@ -290,7 +290,7 @@ lockselect() {
|
||||||
esac
|
esac
|
||||||
|
|
||||||
echof act "Running postlock..."
|
echof act "Running postlock..."
|
||||||
postlock &
|
postlock
|
||||||
}
|
}
|
||||||
|
|
||||||
# calculate adjustments for hidpi displays
|
# calculate adjustments for hidpi displays
|
||||||
|
|
Loading…
Reference in a new issue