mirror of
https://github.com/uowuo/abaddon.git
synced 2024-11-10 06:00:10 +00:00
mention overlay passthrough
This commit is contained in:
parent
23621a50e6
commit
bf29c44d9f
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user