aboutsummaryrefslogtreecommitdiff
path: root/src/egl.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-09-07 19:19:00 +0200
committerdec05eba <dec05eba@protonmail.com>2023-09-07 19:19:00 +0200
commit7d358580a21061136919fec2b980daba3d05d741 (patch)
tree0e6c70444ffb0c6e7ac88380c8aced2b706f312c /src/egl.c
parentd6cf3b73549f48bb1a640e6359fc45ee776b7188 (diff)
wip
Diffstat (limited to 'src/egl.c')
-rw-r--r--src/egl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/egl.c b/src/egl.c
index 00a5b22..9e1d54d 100644
--- a/src/egl.c
+++ b/src/egl.c
@@ -572,6 +572,9 @@ bool gsr_egl_start_capture(gsr_egl *self, const char *monitor_to_capture) {
if(!gsr_egl_supports_wayland_capture(self))
return false;
+ if(self->wayland.frame_callback)
+ return false;
+
self->wayland.output_to_capture = get_wayland_output_by_name(self, monitor_to_capture);
if(!self->wayland.output_to_capture)
return false;