summaryrefslogtreecommitdiff
path: root/src/protocols/core/Compositor.hpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-10-26 02:06:13 +0100
committerVaxry <vaxry@vaxry.net>2024-10-26 02:06:13 +0100
commitd5689bb53935ff1adbbfc9fdf5b1f542ce39efb2 (patch)
tree9df10d93160b5f6dc8c087d56b6face18809b56a /src/protocols/core/Compositor.hpp
parente5384774a8258e44cc7f7b690ce4f6ad1f92b562 (diff)
internal: cleanup CMonitor usage and fix a few ref hogs
ref #8221
Diffstat (limited to 'src/protocols/core/Compositor.hpp')
-rw-r--r--src/protocols/core/Compositor.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/protocols/core/Compositor.hpp b/src/protocols/core/Compositor.hpp
index b3c067c9..fbffd966 100644
--- a/src/protocols/core/Compositor.hpp
+++ b/src/protocols/core/Compositor.hpp
@@ -60,8 +60,8 @@ class CWLSurfaceResource {
bool good();
wl_client* client();
- void enter(SP<CMonitor> monitor);
- void leave(SP<CMonitor> monitor);
+ void enter(PHLMONITOR monitor);
+ void leave(PHLMONITOR monitor);
void sendPreferredTransform(wl_output_transform t);
void sendPreferredScale(int32_t scale);
void frame(timespec* now);
@@ -115,7 +115,7 @@ class CWLSurfaceResource {
std::vector<SP<CWLCallbackResource>> callbacks;
WP<CWLSurfaceResource> self;
WP<CWLSurface> hlSurface;
- std::vector<WP<CMonitor>> enteredOutputs;
+ std::vector<PHLMONITORREF> enteredOutputs;
bool mapped = false;
std::vector<WP<CWLSubsurfaceResource>> subsurfaces;
SP<ISurfaceRole> role;
@@ -124,7 +124,7 @@ class CWLSurfaceResource {
void breadthfirst(std::function<void(SP<CWLSurfaceResource>, const Vector2D&, void*)> fn, void* data);
CRegion accumulateCurrentBufferDamage();
- void presentFeedback(timespec* when, SP<CMonitor> pMonitor);
+ void presentFeedback(timespec* when, PHLMONITOR pMonitor);
void lockPendingState();
void unlockPendingState();