From 7339e8e956bdb383c9137928b017b7d5ef4aadd7 Mon Sep 17 00:00:00 2001
From: Robbert van der Helm <mail@robbertvanderhelm.nl>
Date: Fri, 11 Mar 2022 13:03:26 +0100
Subject: [PATCH] Include CLAP_EVENT_SHOULD_RECORD for gestures

Apparently this is what you're supposed to do.
---
 src/wrapper/clap/wrapper.rs | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/wrapper/clap/wrapper.rs b/src/wrapper/clap/wrapper.rs
index 792c1192..4a1e7c7b 100644
--- a/src/wrapper/clap/wrapper.rs
+++ b/src/wrapper/clap/wrapper.rs
@@ -663,12 +663,11 @@ impl<P: ClapPlugin> Wrapper<P> {
                         OutputParamChangeType::Normal => {
                             CLAP_EVENT_IS_LIVE | CLAP_EVENT_SHOULD_RECORD
                         }
-                        // TODO: Should this include `CLAP_EVENT_SHOULD_RECORD`?
                         OutputParamChangeType::BeginGesture => {
-                            CLAP_EVENT_IS_LIVE | CLAP_EVENT_BEGIN_ADJUST
+                            CLAP_EVENT_IS_LIVE | CLAP_EVENT_SHOULD_RECORD | CLAP_EVENT_BEGIN_ADJUST
                         }
                         OutputParamChangeType::EndGesture => {
-                            CLAP_EVENT_IS_LIVE | CLAP_EVENT_END_ADJUST
+                            CLAP_EVENT_IS_LIVE | CLAP_EVENT_SHOULD_RECORD | CLAP_EVENT_END_ADJUST
                         }
                     },
                 },