Add option to capture the focused monitor

This commit is contained in:
dec05eba
2025-04-04 20:51:28 +02:00
parent 44f35f8f3b
commit 2e3adfc510
19 changed files with 913 additions and 37 deletions

View File

@@ -0,0 +1,20 @@
#pragma once
#include "CursorTracker.hpp"
typedef struct _XDisplay Display;
namespace gsr {
class CursorTrackerX11 : public CursorTracker {
public:
CursorTrackerX11(Display *dpy);
CursorTrackerX11(const CursorTrackerX11&) = delete;
CursorTrackerX11& operator=(const CursorTrackerX11&) = delete;
~CursorTrackerX11() = default;
void update() override {}
std::optional<CursorInfo> get_latest_cursor_info() override;
private:
Display *dpy = nullptr;
};
}