diff --git a/src/event/IdleEvent.hxx b/src/event/IdleEvent.hxx index c43d6117a..00f55988c 100644 --- a/src/event/IdleEvent.hxx +++ b/src/event/IdleEvent.hxx @@ -48,6 +48,9 @@ public: IdleEvent(EventLoop &_loop, Callback _callback) noexcept :loop(_loop), callback(_callback) {} + IdleEvent(const IdleEvent &) = delete; + IdleEvent &operator=(const IdleEvent &) = delete; + ~IdleEvent() noexcept { #ifndef NDEBUG /* this check is redundant, it is only here to avoid