wayland/screencopy: reset buffer requests between frames

Prevents buffer requests from collecting a huge set of duplicate
dmabuf and shm formats.
This commit is contained in:
outfoxxed 2025-07-26 00:09:28 -07:00
parent 448623de5a
commit ab096b7e78
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
4 changed files with 10 additions and 1 deletions

View file

@ -64,6 +64,8 @@ void HyprlandScreencopyContext::onToplevelDestroyed() {
void HyprlandScreencopyContext::captureFrame() {
if (this->object()) return;
this->request.reset();
this->init(this->manager->capture_toplevel_with_wlr_toplevel_handle(
this->paintCursors ? 1 : 0,
this->handle->object()