aboutsummaryrefslogtreecommitdiff
path: root/include/capture
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-07-21 19:12:24 +0200
committerdec05eba <dec05eba@protonmail.com>2023-07-21 19:12:24 +0200
commit8b0723a4f20b115c8d3394bcdf24b60b4895a345 (patch)
tree31f872fcbcfb611091a7d6911ce3320df2f980dd /include/capture
parenta1d31a5cf0b90d3afabc57d5a6f4ccdfb1eeb054 (diff)
Fix window capture
Diffstat (limited to 'include/capture')
-rw-r--r--include/capture/kms_vaapi.h1
-rw-r--r--include/capture/xcomposite_cuda.h1
-rw-r--r--include/capture/xcomposite_vaapi.h1
3 files changed, 3 insertions, 0 deletions
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| */