Skip to content

Commit

Permalink
karm-ui: Tweaked popover event rooting again.
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepy-monax committed Nov 3, 2024
1 parent 27ef989 commit 6be9eb2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/libs/karm-ui/popover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ struct PopoverLayer : public ProxyNode<PopoverLayer> {
}

void event(App::Event &event) override {
if (event.accepted())
return;

if (_popover) {
(*_popover)->event(event);
Expand All @@ -77,12 +79,9 @@ struct PopoverLayer : public ProxyNode<PopoverLayer> {
_closePopover();
event.accept();
}
} else {
ProxyNode::event(event);
}

if (event.accepted())
return;

ProxyNode::event(event);
}

void bubble(App::Event &event) override {
Expand Down

0 comments on commit 6be9eb2

Please sign in to comment.