mirror of
https://github.com/swaywm/sway.git
synced 2025-11-15 06:59:50 -05:00
Fix SIGBUS from wayland clients
This commit is contained in:
parent
665d4baaf1
commit
86372d00db
3 changed files with 4 additions and 3 deletions
|
|
@ -66,6 +66,8 @@ static struct buffer *create_buffer(struct client_state *state, struct buffer *b
|
|||
free(name);
|
||||
fd = -1;
|
||||
|
||||
buf->width = width;
|
||||
buf->height = height;
|
||||
buf->surface = cairo_image_surface_create_for_data(data, CAIRO_FORMAT_ARGB32, width, height, stride);
|
||||
buf->cairo = cairo_create(buf->surface);
|
||||
buf->pango = pango_cairo_create_context(buf->cairo);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue