screencopy, render: Use explicit sync for screencopy (#9697)

* screencopy, render: Use explicit sync for screencopy

* screencopy: Check if explicit sync is enabled

* screencopy: Don't require explicit KMS enabled
This commit is contained in:
Lee Bousfield 2025-03-22 11:01:14 -05:00 committed by GitHub
parent ccbdba7ee2
commit 279b06044c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 62 additions and 51 deletions

View file

@ -73,7 +73,7 @@ class CScreencopyFrame {
CBox box = {};
void copy(CZwlrScreencopyFrameV1* pFrame, wl_resource* buffer);
bool copyDmabuf();
void copyDmabuf(std::function<void(bool)> callback);
bool copyShm();
void share();