diff --git a/src/plugins/score-plugin-gfx/Gfx/WindowDevice.cpp b/src/plugins/score-plugin-gfx/Gfx/WindowDevice.cpp index 7db0b4c8dc..fa26f186c5 100644 --- a/src/plugins/score-plugin-gfx/Gfx/WindowDevice.cpp +++ b/src/plugins/score-plugin-gfx/Gfx/WindowDevice.cpp @@ -60,6 +60,9 @@ class window_device : public ossia::net::device_base public: ~window_device() { + m_screen->onMouseMove = [](QPointF, QPointF) {}; + m_screen->onTabletMove = [](QTabletEvent*) {}; + m_screen->onKey = [](int, const QString&) {}; m_protocol->stop(); { @@ -68,6 +71,7 @@ class window_device : public ossia::net::device_base m_protocol.reset(); } + window_device(std::unique_ptr proto, std::string name) : ossia::net::device_base{std::move(proto)} , m_screen{createScreenNode()}