Commit 2e61ffe
committed
wayland: switch to separate queue for wp_image_description_v1
f0883cd fixed the issue that
`set_color_management` would be called on every frame, however it didn't
fix the problem that the first frame would have no image description
set.
Due to a lack of blocking here, events would end up happening in the
following order:
-> wl_surface.commit()
-> wp_color_management_surface_v1.set_image_description(...)
-> wl_surface.commit()
-> wp_color_management_surface_v1.set_image_description(...)
This would mean setting image description would always lag behind by 1
surface commit. This would effectively result in the first frame never
having any image description set.
Fix this by blocking until the compositor processes what's in the queue
and responds with the ready event so we can set the image description.1 parent 7037ff4 commit 2e61ffe
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3452 | 3452 | | |
3453 | 3453 | | |
3454 | 3454 | | |
| 3455 | + | |
3455 | 3456 | | |
3456 | 3457 | | |
3457 | 3458 | | |
| |||
3489 | 3490 | | |
3490 | 3491 | | |
3491 | 3492 | | |
| 3493 | + | |
3492 | 3494 | | |
| 3495 | + | |
| 3496 | + | |
3493 | 3497 | | |
| 3498 | + | |
| 3499 | + | |
| 3500 | + | |
| 3501 | + | |
3494 | 3502 | | |
3495 | 3503 | | |
3496 | 3504 | | |
| |||
0 commit comments