fix: tray isn't visible when a module updates (#2742)

This commit is contained in:
raffael0 2022-07-09 08:45:09 +02:00 committed by GitHub
parent a42e533089
commit 9f4e88c07d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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