mirror of
https://git.adityakumar.xyz/betterlockscreen-openrc.git
synced 2024-11-21 14:52:52 +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() {
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue