page: fix drawpage race
This commit is contained in:
parent
929441dd26
commit
2a9b90cf85
1 changed files with 3 additions and 4 deletions
|
@ -883,11 +883,10 @@ loadpages(Page *p, int ahead, int oviewgen)
|
|||
if(size.x && size.y && newwin){
|
||||
newwin = 0;
|
||||
resizewin(size);
|
||||
} else {
|
||||
lockdisplay(display);
|
||||
drawpage(p);
|
||||
unlockdisplay(display);
|
||||
}
|
||||
lockdisplay(display);
|
||||
drawpage(p);
|
||||
unlockdisplay(display);
|
||||
}
|
||||
qunlock(p);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue