mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Idle inhibitor toggle no longer update all modules - a list of idle inhibitors is maintained on the Client.
This commit is contained in:
@ -31,7 +31,6 @@ class Bar {
|
||||
|
||||
auto toggle() -> void;
|
||||
void handleSignal(int);
|
||||
void updateAll();
|
||||
|
||||
struct waybar_output *output;
|
||||
Json::Value config;
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user