Renaming idle_inhibitor_modules and idle_inhibitor_status to shorter, more convenient names.

This commit is contained in:
Jordan Leppert
2020-11-01 17:14:05 +00:00
parent 071cb86b45
commit a9dae931c7
3 changed files with 12 additions and 14 deletions

View File

@ -21,9 +21,7 @@ class Client {
struct wl_registry * registry = nullptr;
struct zwlr_layer_shell_v1 * layer_shell = nullptr;
struct zxdg_output_manager_v1 * xdg_output_manager = nullptr;
struct zwp_idle_inhibit_manager_v1 *idle_inhibit_manager = nullptr;
std::vector<std::unique_ptr<Bar>> bars;
private:

View File

@ -12,8 +12,8 @@ class IdleInhibitor : public ALabel {
IdleInhibitor(const std::string&, const waybar::Bar&, const Json::Value&);
~IdleInhibitor();
auto update() -> void;
static std::list<waybar::AModule*> idle_inhibitor_modules;
static std::string idle_inhibitor_status;
static std::list<waybar::AModule*> modules;
static std::string status;
private:
bool handleToggle(GdkEventButton* const& e);