fix(linux): headless monitors on wayland (#3783)

This commit is contained in:
Ondřej Glet
2025-04-14 15:56:21 +02:00
committed by GitHub
parent 86d7663927
commit b43a9b8efb
7 changed files with 359 additions and 130 deletions

View File

@@ -90,7 +90,7 @@ namespace wl {
auto to = std::chrono::steady_clock::now() + timeout;
// Dispatch events until we get a new frame or the timeout expires
dmabuf.listen(interface.dmabuf_manager, output, cursor);
dmabuf.listen(interface.screencopy_manager, interface.dmabuf_interface, output, cursor);
do {
auto remaining_time_ms = std::chrono::duration_cast<std::chrono::milliseconds>(to - std::chrono::steady_clock::now());
if (remaining_time_ms.count() < 0 || !display.dispatch(remaining_time_ms)) {