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
|
|
@ -65,6 +65,8 @@ void WlrScreencopyContext::onScreenDestroyed() {
|
|||
void WlrScreencopyContext::captureFrame() {
|
||||
if (this->object()) return;
|
||||
|
||||
this->request.reset();
|
||||
|
||||
if (this->region.isEmpty()) {
|
||||
this->init(manager->capture_output(this->paintCursors ? 1 : 0, screen->output()));
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue