mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-24 05:49:49 +01:00
protocols: immediately copy toplevel content when ignoreDamage set (#9049)
Also sets m_ignoreDamage, as it wasn't set before.
This commit is contained in:
parent
a6b263713a
commit
f16f170433
2 changed files with 8 additions and 3 deletions
|
@ -202,6 +202,11 @@ void CToplevelExportFrame::copy(CHyprlandToplevelExportFrameV1* pFrame, wl_resou
|
||||||
|
|
||||||
buffer = PBUFFER->buffer;
|
buffer = PBUFFER->buffer;
|
||||||
|
|
||||||
|
m_ignoreDamage = ignoreDamage;
|
||||||
|
|
||||||
|
if (ignoreDamage && validMapped(pWindow))
|
||||||
|
share();
|
||||||
|
else
|
||||||
PROTO::toplevelExport->m_vFramesAwaitingWrite.emplace_back(self);
|
PROTO::toplevelExport->m_vFramesAwaitingWrite.emplace_back(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -226,7 +231,7 @@ void CToplevelExportFrame::share() {
|
||||||
|
|
||||||
resource->sendFlags((hyprlandToplevelExportFrameV1Flags)0);
|
resource->sendFlags((hyprlandToplevelExportFrameV1Flags)0);
|
||||||
|
|
||||||
if (!ignoreDamage) {
|
if (!m_ignoreDamage) {
|
||||||
resource->sendDamage(0, 0, box.width, box.height);
|
resource->sendDamage(0, 0, box.width, box.height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ class CToplevelExportFrame {
|
||||||
|
|
||||||
PHLWINDOW pWindow;
|
PHLWINDOW pWindow;
|
||||||
bool cursorOverlayRequested = false;
|
bool cursorOverlayRequested = false;
|
||||||
bool ignoreDamage = false;
|
bool m_ignoreDamage = false;
|
||||||
bool lockedSWCursors = false;
|
bool lockedSWCursors = false;
|
||||||
|
|
||||||
WP<IHLBuffer> buffer;
|
WP<IHLBuffer> buffer;
|
||||||
|
|
Loading…
Reference in a new issue