fix(Sway): compile without sway

pull/46/head 0.0.7
Alexis 2018-09-10 11:25:53 +02:00
parent 0abaaf2f7f
commit 55e1905284
No known key found for this signature in database
GPG Key ID: 20B1EC2EBBA96BD9
2 changed files with 3 additions and 1 deletions

View File

@ -19,6 +19,8 @@
namespace waybar {
class Bar;
class Factory {
public:
Factory(Bar& bar, const Json::Value& config);

View File

@ -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]);
}