Skip to content

Commit

Permalink
fix(Sway): compile without sway
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexays committed Sep 10, 2018
1 parent 0abaaf2 commit 55e1905
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions include/factory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

namespace waybar {

class Bar;

class Factory {
public:
Factory(Bar& bar, const Json::Value& config);
Expand Down
2 changes: 1 addition & 1 deletion src/factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand Down

0 comments on commit 55e1905

Please sign in to comment.