protocols: Fix fading out windows with noscreenshare being visible (#11457)
This commit is contained in:
parent
dfe58c4809
commit
bca96a5d3b
1 changed files with 3 additions and 2 deletions
|
|
@ -223,10 +223,11 @@ void CScreencopyFrame::renderMon() {
|
||||||
|
|
||||||
const auto PWORKSPACE = w->m_workspace;
|
const auto PWORKSPACE = w->m_workspace;
|
||||||
|
|
||||||
if UNLIKELY (!PWORKSPACE)
|
if UNLIKELY (!PWORKSPACE && !w->m_fadingOut && w->m_alpha->value() != 0.f)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
const auto REALPOS = w->m_realPosition->value() + (w->m_pinned ? Vector2D{} : PWORKSPACE->m_renderOffset->value());
|
const auto renderOffset = PWORKSPACE && !w->m_pinned ? PWORKSPACE->m_renderOffset->value() : Vector2D{};
|
||||||
|
const auto REALPOS = w->m_realPosition->value() + renderOffset;
|
||||||
const auto noScreenShareBox = CBox{REALPOS.x, REALPOS.y, std::max(w->m_realSize->value().x, 5.0), std::max(w->m_realSize->value().y, 5.0)}
|
const auto noScreenShareBox = CBox{REALPOS.x, REALPOS.y, std::max(w->m_realSize->value().x, 5.0), std::max(w->m_realSize->value().y, 5.0)}
|
||||||
.translate(-m_monitor->m_position)
|
.translate(-m_monitor->m_position)
|
||||||
.scale(m_monitor->m_scale)
|
.scale(m_monitor->m_scale)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue