aboutsummaryrefslogtreecommitdiff
path: root/src/egl.c
diff options
context:
space:
mode:
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;