wayland: call wl_surface_attach on every update_buffer to fix weston
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
37bba97508
commit
67788da3fb
1 changed files with 3 additions and 1 deletions
|
|
@ -1262,6 +1262,8 @@ static void wl_shm_interface_destroy(struct _MwLLWayland* wayland, wayland_proto
|
||||||
static void update_buffer(MwLL self, struct _MwLLWaylandShmBuffer* buffer) {
|
static void update_buffer(MwLL self, struct _MwLLWaylandShmBuffer* buffer) {
|
||||||
(void)self;
|
(void)self;
|
||||||
memcpy(buffer->buf, buffer->buf_back, buffer->buf_size);
|
memcpy(buffer->buf, buffer->buf_back, buffer->buf_size);
|
||||||
|
// Yes this is needed every time, it's how we fix weston.
|
||||||
|
wl_surface_attach(buffer->surface, buffer->shm_buffer, 0, 0);
|
||||||
wl_surface_commit(buffer->surface);
|
wl_surface_commit(buffer->surface);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue