ref: af720a92c15c5754fc0f3df0d1d95ed7cdf61a02
parent: dbee61922549014f2d0dae877d1dc25ed946d710
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Thu Jan 20 13:21:48 EST 2022
gui-wl: lock redraw in "done" callback now that the things are placed correctly
--- a/gui-wl/wl-cb.c
+++ b/gui-wl/wl-cb.c
@@ -79,7 +79,9 @@
wl = data;
wl_callback_destroy(cb);
cb = wl_surface_frame(wl->surface);
+ qlock(&drawlock);
wlflush(wl);
+ qunlock(&drawlock);
wl_callback_add_listener(cb, &wl_surface_frame_listener, wl);
}