diff options
author | David Robillard <d@drobilla.net> | 2021-05-11 12:09:17 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-05-11 13:35:17 -0400 |
commit | 655b20bae493a517bd2163a1af379fd57abd3457 (patch) | |
tree | 264a0b7c11d297be5b3167f141cf9a1ce6659b4e /src/handle_event.cpp | |
parent | 75ee1ed27d5d2c60e867abef09ee920446ac13de (diff) | |
download | patchage-655b20bae493a517bd2163a1af379fd57abd3457.tar.gz patchage-655b20bae493a517bd2163a1af379fd57abd3457.tar.bz2 patchage-655b20bae493a517bd2163a1af379fd57abd3457.zip |
Add Cleared event for implementing refresh without a race
Diffstat (limited to 'src/handle_event.cpp')
-rw-r--r-- | src/handle_event.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/handle_event.cpp b/src/handle_event.cpp index fa11ec3..65f4705 100644 --- a/src/handle_event.cpp +++ b/src/handle_event.cpp @@ -48,6 +48,8 @@ public: : _patchage{patchage} {} + void operator()(const event::Cleared&) { _patchage.canvas()->clear(); } + void operator()(const event::DriverAttached& event) { _patchage.driver_attached(event.type); |