From a20f76d7e57d6edbc8ec443021c435a346d10d54 Mon Sep 17 00:00:00 2001 From: raffael0 <43984260+raffael0@users.noreply.github.com> Date: Sat, 9 Jul 2022 09:09:55 +0200 Subject: [PATCH] fix: tray flickers due to excessive redrawing/visibility changing (#2747) Co-authored-by: Patrick Ziegler --- src/x11/tray_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x11/tray_manager.cpp b/src/x11/tray_manager.cpp index eba3560e..442a0601 100644 --- a/src/x11/tray_manager.cpp +++ b/src/x11/tray_manager.cpp @@ -1183,7 +1183,7 @@ bool tray_manager::on(const signals::ui_tray::tray_pos_change& evt) { } bool tray_manager::on(const signals::ui_tray::tray_visibility& evt) { - if (m_opts.tray_position == tray_postition::MODULE) { + if (evt.cast() == m_hidden && m_opts.tray_position == tray_postition::MODULE) { return change_visibility(evt.cast()); } else { return true;