summaryrefslogtreecommitdiff
path: root/src/protocols/ToplevelExport.cpp
diff options
context:
space:
mode:
authoroutfoxxed <outfoxxed@outfoxxed.me>2025-01-12 09:10:36 -0800
committerGitHub <noreply@github.com>2025-01-12 17:10:36 +0000
commita6b263713a2b862ed41362082e2147e081934077 (patch)
tree2f6b32a7450b1210f9b9598f7de807f7ebd43269 /src/protocols/ToplevelExport.cpp
parent4f0f512cab5a8052c80b365449b69b953a97e169 (diff)
protocols: allow hyprland-toplevel-export to capture hidden windows (#9041)
Diffstat (limited to 'src/protocols/ToplevelExport.cpp')
-rw-r--r--src/protocols/ToplevelExport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocols/ToplevelExport.cpp b/src/protocols/ToplevelExport.cpp
index 68561533..0ddd84c8 100644
--- a/src/protocols/ToplevelExport.cpp
+++ b/src/protocols/ToplevelExport.cpp
@@ -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);