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:
parent
e29064023f
commit
9f2040d093
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue