summaryrefslogtreecommitdiff
path: root/src/protocols/CTMControl.hpp
diff options
context:
space:
mode:
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
+};