summaryrefslogtreecommitdiff
path: root/src/protocols/CTMControl.hpp
diff options
context:
space:
mode:
authoroutfoxxed <outfoxxed@outfoxxed.me>2025-02-02 09:31:04 -0800
committerGitHub <noreply@github.com>2025-02-02 18:31:04 +0100
commit373108102c85f9568a8f28b7a85c5500634ca9a4 (patch)
treeee26a8d41949fd37708e1911010ae4326c774913 /src/protocols/CTMControl.hpp
parent97a24ec6f3abd2b2ce4c2e00627679a2713848dd (diff)
protocols: implement hyprland-ctm-control rev 2 (#9267)
* protocols: implement hyprland-ctm-control v2 * bump h-p and nix
Diffstat (limited to 'src/protocols/CTMControl.hpp')
-rw-r--r--src/protocols/CTMControl.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/protocols/CTMControl.hpp b/src/protocols/CTMControl.hpp
index 2c168acd..eb54a3aa 100644
--- a/src/protocols/CTMControl.hpp
+++ b/src/protocols/CTMControl.hpp
@@ -16,11 +16,13 @@ class CHyprlandCTMControlResource {
~CHyprlandCTMControlResource();
bool good();
+ void block();
private:
SP<CHyprlandCtmControlManagerV1> resource;
std::unordered_map<std::string, Mat3x3> ctms;
+ bool blocked = false;
};
class CHyprlandCTMControlProtocol : public IWaylandProtocol {
@@ -37,6 +39,7 @@ class CHyprlandCTMControlProtocol : public IWaylandProtocol {
//
std::vector<SP<CHyprlandCTMControlResource>> m_vManagers;
+ WP<CHyprlandCTMControlResource> m_pManager;
//
struct SCTMData {
@@ -51,4 +54,4 @@ class CHyprlandCTMControlProtocol : public IWaylandProtocol {
namespace PROTO {
inline UP<CHyprlandCTMControlProtocol> ctm;
-}; \ No newline at end of file
+};