From d9707068f96a8ece9f3d3fdda7e8c9326693adc7 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Fri, 11 Nov 2016 10:23:12 +0100 Subject: [PATCH] fix(tray): Disable tray if nodraw is set --- src/components/bar.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/bar.cpp b/src/components/bar.cpp index f77aa4f6..83a00c96 100644 --- a/src/components/bar.cpp +++ b/src/components/bar.cpp @@ -196,6 +196,7 @@ void bar::bootstrap(bool nodraw) { // {{{ if (nodraw) { m_log.trace("bar: Abort bootstrap routine (reason: nodraw)"); + m_traymanager.reset(); return; } @@ -444,9 +445,7 @@ void bar::bootstrap(bool nodraw) { // {{{ // }}} - if (!nodraw) { - bootstrap_tray(); - } + bootstrap_tray(); m_connection.flush(); } // }}}