protocols: allow hyprland-toplevel-export to capture hidden windows (#9041)

This commit is contained in:
outfoxxed
2025-01-12 09:10:36 -08:00
committed by GitHub
parent 4f0f512cab
commit a6b263713a
3 changed files with 10 additions and 10 deletions

View File

@@ -87,7 +87,7 @@ CToplevelExportFrame::CToplevelExportFrame(SP<CHyprlandToplevelExportFrameV1> re
return;
}
if (!pWindow->m_bIsMapped || pWindow->isHidden()) {
if (!pWindow->m_bIsMapped) {
LOGM(ERR, "Client requested sharing of window handle {:x} which is not shareable!", pWindow);
resource->sendFailed();
PROTO::toplevelExport->destroyResource(this);
@@ -148,7 +148,7 @@ void CToplevelExportFrame::copy(CHyprlandToplevelExportFrameV1* pFrame, wl_resou
return;
}
if (!pWindow->m_bIsMapped || pWindow->isHidden()) {
if (!pWindow->m_bIsMapped) {
LOGM(ERR, "Client requested sharing of window handle {:x} which is not shareable (2)!", pWindow);
resource->sendFailed();
PROTO::toplevelExport->destroyResource(this);