summaryrefslogtreecommitdiff
path: root/src/protocols/Screencopy.cpp
diff options
context:
space:
mode:
authordavc0n <dconti.dev@gmail.com>2025-04-22 15:23:29 +0200
committerGitHub <noreply@github.com>2025-04-22 15:23:29 +0200
commit241a4935a244f403fa7108259075b04c81ed258f (patch)
tree50cc20b69c522c2be5396417931f799cac87138d /src/protocols/Screencopy.cpp
parent3577a6be31fa26539b4088ea07aa2221f84b132e (diff)
compositor: refactor class member vars (#10141)
Diffstat (limited to 'src/protocols/Screencopy.cpp')
-rw-r--r--src/protocols/Screencopy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocols/Screencopy.cpp b/src/protocols/Screencopy.cpp
index 11aa5957..8480e692 100644
--- a/src/protocols/Screencopy.cpp
+++ b/src/protocols/Screencopy.cpp
@@ -150,7 +150,7 @@ void CScreencopyFrame::copy(CZwlrScreencopyFrameV1* pFrame, wl_resource* buffer_
lockedSWCursors = true;
// TODO: make it per-monitor
if (!PROTO::screencopy->m_bTimerArmed) {
- for (auto const& m : g_pCompositor->m_vMonitors) {
+ for (auto const& m : g_pCompositor->m_monitors) {
g_pPointerManager->lockSoftwareForMonitor(m);
}
PROTO::screencopy->m_bTimerArmed = true;
@@ -402,7 +402,7 @@ CScreencopyProtocol::CScreencopyProtocol(const wl_interface* iface, const int& v
std::nullopt,
[this](SP<CEventLoopTimer> self, void* data) {
// TODO: make it per-monitor
- for (auto const& m : g_pCompositor->m_vMonitors) {
+ for (auto const& m : g_pCompositor->m_monitors) {
g_pPointerManager->unlockSoftwareForMonitor(m);
}
m_bTimerArmed = false;