Revert "[core/output] fix logic error when using "autohide""

This reverts commit 74ecbb6ca8.
This commit is contained in:
tobi-wan-kenobi 2021-11-06 08:17:11 +01:00
parent 74ecbb6ca8
commit 6a3e4761bf

View file

@ -229,11 +229,9 @@ class i3(object):
for widget in module.widgets():
if widget.module and self.__config.autohide(widget.module.name):
if not any(
state in widget.state() for state in ["warning", "critical"]
state in widget.state() for state in ["warning", "critical", "mayhide"]
):
continue
if "mayhide" in widget.state():
continue
if module.hidden():
continue
if widget.hidden: