mention overlay passthrough

This commit is contained in:
ouwou 2024-05-21 14:43:16 -04:00
parent 23621a50e6
commit bf29c44d9f

View File

@ -99,6 +99,10 @@ static Gtk::Widget *AddMentionOverlay(Gtk::Widget *widget, Snowflake guild_id) {
overlay->add(*widget); overlay->add(*widget);
auto *mention_overlay = Gtk::make_managed<MentionOverlay>(guild_id); auto *mention_overlay = Gtk::make_managed<MentionOverlay>(guild_id);
overlay->add_overlay(*mention_overlay); overlay->add_overlay(*mention_overlay);
overlay->set_overlay_pass_through(*mention_overlay, true);
mention_overlay->signal_realize().connect([mention_overlay]() {
mention_overlay->get_window()->set_pass_through(true);
});
overlay->show_all(); overlay->show_all();
return overlay; return overlay;
} }