From 9f4e88c07d07056e351109ee11f718c9df3e98e8 Mon Sep 17 00:00:00 2001 From: raffael0 <43984260+raffael0@users.noreply.github.com> Date: Sat, 9 Jul 2022 08:45:09 +0200 Subject: [PATCH] fix: tray isn't visible when a module updates (#2742) --- src/x11/tray_manager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/x11/tray_manager.cpp b/src/x11/tray_manager.cpp index 98405559..eba3560e 100644 --- a/src/x11/tray_manager.cpp +++ b/src/x11/tray_manager.cpp @@ -1183,7 +1183,11 @@ bool tray_manager::on(const signals::ui_tray::tray_pos_change& evt) { } bool tray_manager::on(const signals::ui_tray::tray_visibility& evt) { - return change_visibility(evt.cast()); + if (m_opts.tray_position == tray_postition::MODULE) { + return change_visibility(evt.cast()); + } else { + return true; + } } POLYBAR_NS_END