From 8b0723a4f20b115c8d3394bcdf24b60b4895a345 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 21 Jul 2023 19:12:24 +0200 Subject: Fix window capture --- include/capture/kms_vaapi.h | 1 + include/capture/xcomposite_cuda.h | 1 + include/capture/xcomposite_vaapi.h | 1 + 3 files changed, 3 insertions(+) (limited to 'include/capture') diff --git a/include/capture/kms_vaapi.h b/include/capture/kms_vaapi.h index 77b292a..8e11682 100644 --- a/include/capture/kms_vaapi.h +++ b/include/capture/kms_vaapi.h @@ -9,6 +9,7 @@ typedef struct _XDisplay Display; typedef struct { gsr_egl *egl; + Display *dpy; const char *display_to_capture; /* if this is "screen", then the entire x11 screen is captured (all displays). A copy is made of this */ gsr_gpu_info gpu_inf; const char *card_path; /* reference */ diff --git a/include/capture/xcomposite_cuda.h b/include/capture/xcomposite_cuda.h index 547a6f3..2106714 100644 --- a/include/capture/xcomposite_cuda.h +++ b/include/capture/xcomposite_cuda.h @@ -10,6 +10,7 @@ typedef struct _XDisplay Display; typedef struct { gsr_egl *egl; + Display *dpy; Window window; bool follow_focused; /* If this is set then |window| is ignored */ vec2i region_size; /* This is currently only used with |follow_focused| */ diff --git a/include/capture/xcomposite_vaapi.h b/include/capture/xcomposite_vaapi.h index bba485b..e80c60a 100644 --- a/include/capture/xcomposite_vaapi.h +++ b/include/capture/xcomposite_vaapi.h @@ -10,6 +10,7 @@ typedef struct _XDisplay Display; typedef struct { gsr_egl *egl; + Display *dpy; Window window; bool follow_focused; /* If this is set then |window| is ignored */ vec2i region_size; /* This is currently only used with |follow_focused| */ -- cgit v1.2.3