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

@ -5,6 +5,7 @@ waybar::modules::IdleInhibitor::IdleInhibitor(const std::string& id, const Bar&
const Json::Value& config)
: ALabel(config, "idle_inhibitor", id, "{status}"),
bar_(bar),
idle_inhibitor_(nullptr),
pid_(-1) {
event_box_.add_events(Gdk::BUTTON_PRESS_MASK);
event_box_.signal_button_press_event().connect(