Refactor xcomposite into abstract capture api

Refactor c++ files into c files, more usable
This commit is contained in:
dec05eba
2022-10-16 02:08:40 +02:00
parent 93d46b9767
commit a7e0dbd833
21 changed files with 1342 additions and 1184 deletions

View File

@@ -4,8 +4,11 @@
#include "capture.h"
#include "../vec2.h"
typedef struct _XDisplay Display;
typedef struct {
const char *display_to_capture; /* if this is "screen", then the entire x11 screen is captured (all displays) */
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 */
int fps;
vec2i pos;
vec2i size;