Making idle_inhibitor_ private and initialised in constructor, as it was before.

This commit is contained in:
Jordan Leppert
2020-11-01 13:38:58 +00:00
parent 4889e655eb
commit bb33427f65
2 changed files with 2 additions and 1 deletions

View File

@ -12,12 +12,12 @@ class IdleInhibitor : public ALabel {
IdleInhibitor(const std::string&, const waybar::Bar&, const Json::Value&);
~IdleInhibitor();
auto update() -> void;
struct zwp_idle_inhibitor_v1* idle_inhibitor_ = nullptr;
private:
bool handleToggle(GdkEventButton* const& e);
const Bar& bar_;
struct zwp_idle_inhibitor_v1* idle_inhibitor_;
int pid_;
};