refactor: header cleanup

Replace a couple of header includes with forward declarations.
This commit is contained in:
Aleksei Bavshin
2020-10-21 22:45:03 -07:00
parent f01996ae99
commit f97de599dd
5 changed files with 10 additions and 2 deletions

View File

@ -7,6 +7,7 @@
#include "bar.hpp"
#include "client.hpp"
#include "factory.hpp"
#include "wlr-layer-shell-unstable-v1-client-protocol.h"
namespace waybar {
static constexpr const char* MIN_HEIGHT_MSG =

View File

@ -6,6 +6,9 @@
#include "util/clara.hpp"
#include "util/json.hpp"
#include "idle-inhibit-unstable-v1-client-protocol.h"
#include "wlr-layer-shell-unstable-v1-client-protocol.h"
waybar::Client *waybar::Client::inst() {
static auto c = new Client();
return c;

View File

@ -1,4 +1,6 @@
#include "modules/idle_inhibitor.hpp"
#include "idle-inhibit-unstable-v1-client-protocol.h"
#include "util/command.hpp"
waybar::modules::IdleInhibitor::IdleInhibitor(const std::string& id, const Bar& bar,