Only show/hide top-level windows on systray action (#4939)

This commit is contained in:
Mike Gelfand
2023-02-18 19:09:35 +03:00
committed by GitHub
parent e29064023f
commit 9f2040d093

View File

@@ -655,6 +655,13 @@ void gtr_widget_set_visible(Gtk::Widget& widget, bool is_visible)
for (auto* const top_level_window : Gtk::Window::list_toplevels())
{
#if !GTKMM_CHECK_VERSION(4, 0, 0)
if (top_level_window->get_window_type() != Gtk::WINDOW_TOPLEVEL)
{
continue;
}
#endif
if (top_level_window->get_transient_for() != window || top_level_window->get_visible() == is_visible)
{
continue;