summaryrefslogtreecommitdiff
path: root/src/helpers
diff options
context:
space:
mode:
authorUjinT34 <41110182+UjinT34@users.noreply.github.com>2025-02-26 17:56:37 +0300
committerGitHub <noreply@github.com>2025-02-26 15:56:37 +0100
commit6787fe8933b54f9e68f123df457e502dee9be13a (patch)
treef77f71d739e8d403347b83fde4377bc519acea3e /src/helpers
parentf0850905f0275922340035f62b6d808c2980ceda (diff)
protocols: Support wp color management proto (#9444)
Adds support for the recently merged w-p CM protocol alongside the (now deprecated) old CM WIP protocols
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/Monitor.hpp66
1 files changed, 34 insertions, 32 deletions
diff --git a/src/helpers/Monitor.hpp b/src/helpers/Monitor.hpp
index 690b8c4a..5a58fc06 100644
--- a/src/helpers/Monitor.hpp
+++ b/src/helpers/Monitor.hpp
@@ -12,6 +12,7 @@
#include "Timer.hpp"
#include "math/Math.hpp"
#include <optional>
+#include "protocols/types/ColorManagement.hpp"
#include "signal/Signal.hpp"
#include "DamageRing.hpp"
#include <aquamarine/output/Output.hpp>
@@ -162,38 +163,39 @@ class CMonitor {
std::array<std::vector<PHLLSREF>, 4> m_aLayerSurfaceLayers;
// methods
- void onConnect(bool noRule);
- void onDisconnect(bool destroy = false);
- bool applyMonitorRule(SMonitorRule* pMonitorRule, bool force = false);
- void addDamage(const pixman_region32_t* rg);
- void addDamage(const CRegion& rg);
- void addDamage(const CBox& box);
- bool shouldSkipScheduleFrameOnMouseEvent();
- void setMirror(const std::string&);
- bool isMirror();
- bool matchesStaticSelector(const std::string& selector) const;
- float getDefaultScale();
- void changeWorkspace(const PHLWORKSPACE& pWorkspace, bool internal = false, bool noMouseMove = false, bool noFocus = false);
- void changeWorkspace(const WORKSPACEID& id, bool internal = false, bool noMouseMove = false, bool noFocus = false);
- void setSpecialWorkspace(const PHLWORKSPACE& pWorkspace);
- void setSpecialWorkspace(const WORKSPACEID& id);
- void moveTo(const Vector2D& pos);
- Vector2D middle();
- void updateMatrix();
- WORKSPACEID activeWorkspaceID();
- WORKSPACEID activeSpecialWorkspaceID();
- CBox logicalBox();
- void scheduleDone();
- bool attemptDirectScanout();
- void setCTM(const Mat3x3& ctm);
- void onCursorMovedOnMonitor();
-
- void debugLastPresentation(const std::string& message);
- void onMonitorFrame();
-
- bool m_bEnabled = false;
- bool m_bRenderingInitPassed = false;
- WP<CWindow> m_previousFSWindow;
+ void onConnect(bool noRule);
+ void onDisconnect(bool destroy = false);
+ bool applyMonitorRule(SMonitorRule* pMonitorRule, bool force = false);
+ void addDamage(const pixman_region32_t* rg);
+ void addDamage(const CRegion& rg);
+ void addDamage(const CBox& box);
+ bool shouldSkipScheduleFrameOnMouseEvent();
+ void setMirror(const std::string&);
+ bool isMirror();
+ bool matchesStaticSelector(const std::string& selector) const;
+ float getDefaultScale();
+ void changeWorkspace(const PHLWORKSPACE& pWorkspace, bool internal = false, bool noMouseMove = false, bool noFocus = false);
+ void changeWorkspace(const WORKSPACEID& id, bool internal = false, bool noMouseMove = false, bool noFocus = false);
+ void setSpecialWorkspace(const PHLWORKSPACE& pWorkspace);
+ void setSpecialWorkspace(const WORKSPACEID& id);
+ void moveTo(const Vector2D& pos);
+ Vector2D middle();
+ void updateMatrix();
+ WORKSPACEID activeWorkspaceID();
+ WORKSPACEID activeSpecialWorkspaceID();
+ CBox logicalBox();
+ void scheduleDone();
+ bool attemptDirectScanout();
+ void setCTM(const Mat3x3& ctm);
+ void onCursorMovedOnMonitor();
+
+ void debugLastPresentation(const std::string& message);
+ void onMonitorFrame();
+
+ bool m_bEnabled = false;
+ bool m_bRenderingInitPassed = false;
+ WP<CWindow> m_previousFSWindow;
+ NColorManagement::SImageDescription imageDescription;
// For the list lookup