Fix window capture

This commit is contained in:
dec05eba
2023-07-21 19:12:24 +02:00
parent a1d31a5cf0
commit 8b0723a4f2
8 changed files with 63 additions and 96 deletions

View File

@@ -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 */

View File

@@ -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| */

View File

@@ -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| */