summaryrefslogtreecommitdiffstats
path: root/src/handle_event.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-05-11 12:09:17 -0400
committerDavid Robillard <d@drobilla.net>2021-05-11 13:35:17 -0400
commit655b20bae493a517bd2163a1af379fd57abd3457 (patch)
tree264a0b7c11d297be5b3167f141cf9a1ce6659b4e /src/handle_event.cpp
parent75ee1ed27d5d2c60e867abef09ee920446ac13de (diff)
downloadpatchage-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.cpp2
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);