ref: 034e38b472fb607951b32fb90c824f33474ce8e7
parent: 6d3d30870972151e7ebfef6ded2ecb410dea4bbf
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Mon Dec 28 10:34:27 EST 2020
do not use display locking
--- a/main.c
+++ b/main.c
@@ -76,8 +76,6 @@
late = 0;
}
- lockdisplay(display);
-
if(curim != nil && (Dx(curim->r) != f->w || Dy(curim->r) != f->h)){
freeimage(curim);
curim = nil;
@@ -128,7 +126,6 @@
if(showinfo)
stringbg(screen, screen->r.min, display->white, ZP, font, info, display->black, ZP);
flushimage(display, 1);
- unlockdisplay(display);
dispdelay += nanosec() - x;
drop:
@@ -210,9 +207,6 @@
srand(nanosec());
if(initdraw(nil, nil, "treason") < 0)
sysfatal("initdraw: %r");
- flushimage(display, 1);
- display->locking = 1;
- unlockdisplay(display);
if((mctl = initmouse(nil, screen)) == nil)
sysfatal("initmouse: %r");
if((kctl = initkeyboard(nil)) == nil)