From af5f129b767d7d83079502971b38e8ada86b3da6 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Fri, 27 Jan 2017 13:33:39 +0100 Subject: [PATCH] fix(tray): Drop warning --- src/x11/tray_manager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/x11/tray_manager.cpp b/src/x11/tray_manager.cpp index d3501a4f..0a135ba5 100644 --- a/src/x11/tray_manager.cpp +++ b/src/x11/tray_manager.cpp @@ -70,8 +70,10 @@ void tray_manager::setup(const bar_settings& bar_opts) { m_opts.align = alignment::RIGHT; } else if (position == "center") { m_opts.align = alignment::CENTER; - } else { + } else if (position != "none") { return m_log.err("Disabling tray manager (reason: Invalid position \"" + position + "\")"); + } else { + return; } m_opts.detached = conf.get(bs, "tray-detached", false);