fix(linux/xdgportal): avoid duplicate frame insertion (#4839)

This commit is contained in:
Conn O'Griofa
2026-03-14 17:43:17 +00:00
committed by GitHub
parent 00fa2400dd
commit 99d4e053bf
3 changed files with 12 additions and 2 deletions

View File

@@ -1365,6 +1365,11 @@ namespace portal {
return 0;
}
// This capture method is event driven; don't insert duplicate frames
bool is_event_driven() override {
return true;
}
private:
bool is_buffer_redundant(const egl::img_descriptor_t *img) {
// Check for corrupted frame