Do not crash when a monitor is removed

This commit is contained in:
Jef Steelant
2022-11-09 09:34:19 +01:00
parent 8be5bab8ad
commit 8f4f67f69f
6 changed files with 62 additions and 16 deletions

View File

@ -9,10 +9,11 @@
namespace waybar::modules::hyprland {
class Window : public waybar::ALabel {
class Window : public waybar::ALabel,
public EventHandler {
public:
Window(const std::string&, const waybar::Bar&, const Json::Value&);
~Window() = default;
~Window();
auto update() -> void;
@ -28,4 +29,4 @@ class Window : public waybar::ALabel {
std::string lastView;
};
} // namespace waybar::modules::hyprland
} // namespace waybar::modules::hyprland