protocols: implement hyprland-ctm-control rev 2 (#9267)
* protocols: implement hyprland-ctm-control v2 * bump h-p and nix
This commit is contained in:
parent
97a24ec6f3
commit
373108102c
7 changed files with 41 additions and 18 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue