add "output" class to river tags module when monitor is focused

This commit is contained in:
lilly-lizard
2024-07-13 14:08:48 +12:00
parent 2655660509
commit 626c52cc79
2 changed files with 59 additions and 3 deletions
+4
View File
@@ -20,6 +20,8 @@ class Tags : public waybar::AModule {
void handle_focused_tags(uint32_t tags);
void handle_view_tags(struct wl_array *tags);
void handle_urgent_tags(uint32_t tags);
void handle_focused_output(struct wl_output *output);
void handle_unfocused_output(struct wl_output *output);
void handle_primary_clicked(uint32_t tag);
bool handle_button_press(GdkEventButton *event_button, uint32_t tag);
@@ -30,9 +32,11 @@ class Tags : public waybar::AModule {
private:
const waybar::Bar &bar_;
struct wl_output *output_; // stores the output this module belongs to
Gtk::Box box_;
std::vector<Gtk::Button> buttons_;
struct zriver_output_status_v1 *output_status_;
struct zriver_seat_status_v1 *seat_status_;
};
} /* namespace waybar::modules::river */