mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 11:55:59 +01:00
Merge pull request #1132 from emersion/fix-screencopy-frame-error
screencopy: fix segfault when client supplies invalid buffer
This commit is contained in:
commit
4984ea49ee
1 changed files with 1 additions and 0 deletions
|
@ -202,6 +202,7 @@ static void capture_output(struct wl_client *client,
|
||||||
wl_list_insert(&manager->frames, &frame->link);
|
wl_list_insert(&manager->frames, &frame->link);
|
||||||
|
|
||||||
wl_list_init(&frame->output_swap_buffers.link);
|
wl_list_init(&frame->output_swap_buffers.link);
|
||||||
|
wl_list_init(&frame->buffer_destroy.link);
|
||||||
|
|
||||||
frame->format = WL_SHM_FORMAT_XRGB8888;
|
frame->format = WL_SHM_FORMAT_XRGB8888;
|
||||||
frame->box = buffer_box;
|
frame->box = buffer_box;
|
||||||
|
|
Loading…
Reference in a new issue