aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-06-10 12:28:53 +0200
committerdec05eba <dec05eba@protonmail.com>2024-06-10 12:28:53 +0200
commit3f0a58a1e61de8094d9ebf9db320c01b59ab441f (patch)
treeabb78d5415741f73e1c46adf8e32abb627e3d5e3 /src/utils.c
parentf8453bcaa4b488aea601af632ab5656979eb6024 (diff)
Do not require a valid drm plane to capture a window on amd/intel x11
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils.c b/src/utils.c
index 40d652e..b9995e8 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -423,10 +423,10 @@ static void string_copy(char *dst, const char *src, int len) {
dst[min_len] = '\0';
}
-bool gsr_get_valid_card_path(gsr_egl *egl, char *output) {
+bool gsr_get_valid_card_path(gsr_egl *egl, char *output, bool is_monitor_capture) {
if(egl->dri_card_path) {
string_copy(output, egl->dri_card_path, 127);
- return try_card_has_valid_plane(output);
+ return is_monitor_capture ? try_card_has_valid_plane(output) : true;
}
for(int i = 0; i < 10; ++i) {