diff --git a/include/widget/OpaqueWidget.hpp b/include/widget/OpaqueWidget.hpp index 607f2e9a..629f6bb8 100644 --- a/include/widget/OpaqueWidget.hpp +++ b/include/widget/OpaqueWidget.hpp @@ -42,6 +42,9 @@ struct OpaqueWidget : Widget { void onDragHover(const event::DragHover &e) override { Widget::onDragHover(e); e.stopPropagating(); + // Consume if not consumed by child + if (!e.isConsumed()) + e.consume(this); } void onPathDrop(const event::PathDrop &e) override { Widget::onPathDrop(e);