From 1d7d45c4cdff58271918d4fa93669990be89fd56 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Wed, 12 Oct 2016 05:38:56 +0200 Subject: [PATCH] fix(i3): Conditionally load i3_utils --- include/components/bar.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/components/bar.hpp b/include/components/bar.hpp index 497bcda1..a8f40e6b 100644 --- a/include/components/bar.hpp +++ b/include/components/bar.hpp @@ -18,10 +18,12 @@ #include "components/x11/xlib.hpp" #include "components/x11/xutils.hpp" #include "utils/bspwm.hpp" -#include "utils/i3.hpp" #include "utils/math.hpp" #include "utils/string.hpp" #include "utils/threading.hpp" +#if ENABLE_I3 +#include "utils/i3.hpp" +#endif LEMONBUDDY_NS @@ -340,8 +342,10 @@ class bar : public xpp::event::sink { if (wm_restack == "bspwm") { restacked = bspwm_util::restack_above_root(m_connection, m_bar.monitor, m_window); - } else if (wm_restack == "i3" && m_bar.dock) { + } else if (wm_restack == "i3" && m_bar.dock && ENABLE_I3) { +#if ENABLE_I3 restacked = i3_util::restack_above_root(m_connection, m_bar.monitor, m_window); +#endif } else if (wm_restack == "i3" && !m_bar.dock) { m_log.warn("Ignoring restack of i3 window (not needed when dock = false)");