mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
Only show/hide top-level windows on systray action (#4939)
This commit is contained in:
@@ -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())
|
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)
|
if (top_level_window->get_transient_for() != window || top_level_window->get_visible() == is_visible)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user