forked from quickshell/quickshell
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:
parent
448623de5a
commit
ab096b7e78
4 changed files with 10 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue