From 55e190528437a0e2a0c2ae868522ce3e4b022638 Mon Sep 17 00:00:00 2001 From: Alexis Date: Mon, 10 Sep 2018 11:25:53 +0200 Subject: [PATCH] fix(Sway): compile without sway --- include/factory.hpp | 2 ++ src/factory.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/factory.hpp b/include/factory.hpp index ce5627cc..718a3e74 100644 --- a/include/factory.hpp +++ b/include/factory.hpp @@ -19,6 +19,8 @@ namespace waybar { +class Bar; + class Factory { public: Factory(Bar& bar, const Json::Value& config); diff --git a/src/factory.cpp b/src/factory.cpp index ca35c0e4..fc69b0b1 100644 --- a/src/factory.cpp +++ b/src/factory.cpp @@ -14,10 +14,10 @@ waybar::IModule* waybar::Factory::makeModule(const std::string &name) const if (name == "sway/workspaces") { return new waybar::modules::sway::Workspaces(bar_, config_[name]); } - #endif if (name == "sway/window") { return new waybar::modules::sway::Window(bar_, config_[name]); } + #endif if (name == "memory") { return new waybar::modules::Memory(config_[name]); }