diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2015-11-18 09:55:55 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2015-11-18 09:55:55 -0500 |
| commit | 4cd2c2ab70de706961d148500b4a684c286027e7 (patch) | |
| tree | 47a11db9d457d7f4f95dcf4531d1f8bac1994da0 /wayland | |
| parent | bf255c30cc1cc344716c861558c13b698e110d48 (diff) | |
Fix SIGBUS from wayland clients
Diffstat (limited to 'wayland')
| -rw-r--r-- | wayland/buffers.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wayland/buffers.c b/wayland/buffers.c index f426b912..6117e10b 100644 --- a/wayland/buffers.c +++ b/wayland/buffers.c @@ -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); |
