summaryrefslogtreecommitdiff
path: root/src/protocols/Screencopy.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2025-12-08 15:04:40 +0000
committerGitHub <noreply@github.com>2025-12-08 15:04:40 +0000
commit920353370bba555010506a1c0b204675c60362fe (patch)
tree87ba1036ecad6294a9c86dfc828ed2a356c810bd /src/protocols/Screencopy.cpp
parent834f019bab5df85b912a7aab7054fc8306f7c52a (diff)
desktop: cleanup, unify desktop elements as views (#12563)
Diffstat (limited to 'src/protocols/Screencopy.cpp')
-rw-r--r--src/protocols/Screencopy.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/protocols/Screencopy.cpp b/src/protocols/Screencopy.cpp
index 84487a18..36b11298 100644
--- a/src/protocols/Screencopy.cpp
+++ b/src/protocols/Screencopy.cpp
@@ -212,12 +212,12 @@ void CScreencopyFrame::renderMon() {
g_pHyprOpenGL->popMonitorTransformEnabled();
auto hidePopups = [&](Vector2D popupBaseOffset) {
- return [&, popupBaseOffset](WP<CPopup> popup, void*) {
- if (!popup->m_wlSurface || !popup->m_wlSurface->resource() || !popup->m_mapped)
+ return [&, popupBaseOffset](WP<Desktop::View::CPopup> popup, void*) {
+ if (!popup->wlSurface() || !popup->wlSurface()->resource() || !popup->visible())
return;
const auto popRel = popup->coordsRelativeToParent();
- popup->m_wlSurface->resource()->breadthfirst(
+ popup->wlSurface()->resource()->breadthfirst(
[&](SP<CWLSurfaceResource> surf, const Vector2D& localOff, void*) {
const auto size = surf->m_current.size;
const auto surfBox = CBox{popupBaseOffset + popRel + localOff, size}.translate(m_monitor->m_position).scale(m_monitor->m_scale).translate(-m_box.pos());
@@ -233,7 +233,7 @@ void CScreencopyFrame::renderMon() {
if (!l->m_ruleApplicator->noScreenShare().valueOrDefault())
continue;
- if UNLIKELY ((!l->m_mapped && !l->m_fadingOut) || l->m_alpha->value() == 0.f)
+ if UNLIKELY (!l->visible())
continue;
const auto REALPOS = l->m_realPosition->value();