mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-10-31 16:02:43 +01:00 
			
		
		
		
	modules: Revert button to label
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| #pragma once | ||||
| #include <list> | ||||
| #include <functional> | ||||
| #include <list> | ||||
| #include <memory> | ||||
| #include <mutex> | ||||
| #include <string> | ||||
| @@ -9,7 +9,7 @@ | ||||
| namespace waybar::modules::hyprland { | ||||
|  | ||||
| class EventHandler { | ||||
| public: | ||||
|  public: | ||||
|   virtual void onEvent(const std::string& ev) = 0; | ||||
|   virtual ~EventHandler() = default; | ||||
| }; | ||||
|   | ||||
| @@ -1,14 +1,13 @@ | ||||
| #include <fmt/format.h> | ||||
|  | ||||
| #include "AButton.hpp" | ||||
| #include "ALabel.hpp" | ||||
| #include "bar.hpp" | ||||
| #include "modules/hyprland/backend.hpp" | ||||
| #include "util/json.hpp" | ||||
|  | ||||
| namespace waybar::modules::hyprland { | ||||
|  | ||||
| class Language : public waybar::AButton, | ||||
| public EventHandler { | ||||
| class Language : public waybar::ALabel, public EventHandler { | ||||
|  public: | ||||
|   Language(const std::string&, const waybar::Bar&, const Json::Value&); | ||||
|   ~Language(); | ||||
|   | ||||
| @@ -9,8 +9,7 @@ | ||||
|  | ||||
| namespace waybar::modules::hyprland { | ||||
|  | ||||
| class Window : public waybar::ALabel, | ||||
|  public EventHandler { | ||||
| class Window : public waybar::ALabel, public EventHandler { | ||||
|  public: | ||||
|   Window(const std::string&, const waybar::Bar&, const Json::Value&); | ||||
|   ~Window(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Simon Plakolb
					Simon Plakolb