mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-05-07 23:20:26 +09:00
Re-add kwin and hyprland helper to get window title, this time without a thread
This commit is contained in:
20
include/DesktopEnvironment/DesktopEnvironment.hpp
Normal file
20
include/DesktopEnvironment/DesktopEnvironment.hpp
Normal 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user