1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-30 10:52:00 +00:00

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;