mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-10-25 23:22:28 +02:00 
			
		
		
		
	feat(Bar): add class depend of window in the workspace
This commit is contained in:
		| @@ -17,17 +17,18 @@ class Window : public ALabel { | ||||
|   auto update() -> void; | ||||
|  | ||||
|  private: | ||||
|   void                         onEvent(const struct Ipc::ipc_response&); | ||||
|   void                         onCmd(const struct Ipc::ipc_response&); | ||||
|   void                         worker(); | ||||
|   std::tuple<int, std::string> getFocusedNode(const Json::Value& nodes); | ||||
|   void                         getFocusedWindow(); | ||||
|   void                                                   onEvent(const struct Ipc::ipc_response&); | ||||
|   void                                                   onCmd(const struct Ipc::ipc_response&); | ||||
|   void                                                   worker(); | ||||
|   std::tuple<std::size_t, int, std::string, std::string> getFocusedNode(const Json::Value& nodes); | ||||
|   void                                                   getTree(); | ||||
|  | ||||
|   const Bar&                  bar_; | ||||
|   waybar::util::SleeperThread thread_; | ||||
|   Ipc                         ipc_; | ||||
|   std::string                 window_; | ||||
|   int                         windowId_; | ||||
|   std::string                 app_id_; | ||||
| }; | ||||
|  | ||||
| }  // namespace waybar::modules::sway | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Alex
					Alex