mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-12-22 17:59:47 +01:00
screencast: implement wlr_frame_linux_dmabuf
This commit is contained in:
parent
12de0cd144
commit
6630525b7a
1 changed files with 6 additions and 0 deletions
|
@ -101,7 +101,13 @@ static void wlr_frame_buffer(void *data, struct zwlr_screencopy_frame_v1 *frame,
|
|||
static void wlr_frame_linux_dmabuf(void *data,
|
||||
struct zwlr_screencopy_frame_v1 *frame,
|
||||
uint32_t format, uint32_t width, uint32_t height) {
|
||||
struct xdpw_screencast_instance *cast = data;
|
||||
|
||||
logprint(TRACE, "wlroots: linux_dmabuf event handler");
|
||||
|
||||
cast->screencopy_frame_info[DMABUF].width = width;
|
||||
cast->screencopy_frame_info[DMABUF].height = height;
|
||||
cast->screencopy_frame_info[DMABUF].format = format;
|
||||
}
|
||||
|
||||
static void wlr_frame_buffer_done(void *data,
|
||||
|
|
Loading…
Reference in a new issue