Commit 780f30e
committed
wayland: block after creating image_desc to ensure it gets set
Previous commit fixed the problem that `set_color_management` would be
called on every frame, however it didn't fix the problem that due to a
lack of blocking, we'd end up doing events in the following order:
-> wl_surface#9.commit()
-> wp_color_management_surface_v1#45.set_image_description(...)
-> wl_surface#9.commit()
-> wp_color_management_surface_v1#45.set_image_description(...)
This would mean the image description would always lag behind by 1
commit, and effectively the first frame would _always_ have no image
description set.
Fix this issue by blocking the thread until the compositor responds with
a ready event and we call set_image_description.1 parent ba348e2 commit 780f30e
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3491 | 3491 | | |
3492 | 3492 | | |
3493 | 3493 | | |
| 3494 | + | |
| 3495 | + | |
| 3496 | + | |
| 3497 | + | |
3494 | 3498 | | |
3495 | 3499 | | |
3496 | 3500 | | |
| |||
0 commit comments