Re-add kwin and hyprland helper to get window title, this time without a thread

This commit is contained in:
dec05eba
2026-04-27 00:04:29 +02:00
parent 57c60b6aee
commit 71d7477aea
15 changed files with 318 additions and 187 deletions

View File

@@ -0,0 +1,20 @@
#pragma once
#include <string>
namespace gsr {
class DesktopEnvironment {
public:
DesktopEnvironment() = default;
DesktopEnvironment(const DesktopEnvironment&) = delete;
DesktopEnvironment& operator=(const DesktopEnvironment&) = delete;
virtual ~DesktopEnvironment() = default;
virtual bool start() = 0;
virtual void update() = 0;
// Return an empty string if none
virtual std::string get_focused_window_title() = 0;
// Return an empty string if unknown
//virtual std::string get_focused_monitor_name() = 0;
};
}