Idle inhibitor toggle no longer update all modules - a list of idle inhibitors is maintained on the Client.

This commit is contained in:
Jordan Leppert
2020-10-31 17:30:25 +00:00
parent 188611a767
commit aa4fc3dd29
4 changed files with 9 additions and 16 deletions

View File

@ -31,7 +31,6 @@ class Bar {
auto toggle() -> void;
void handleSignal(int);
void updateAll();
struct waybar_output *output;
Json::Value config;

View File

@ -21,8 +21,11 @@ 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;
struct zwp_idle_inhibitor_v1* idle_inhibitor;
std::vector<waybar::AModule*> idle_inhibitor_modules;
std::vector<std::unique_ptr<Bar>> bars;
private: