wlx-capture: avoid busy loop waiting for screencopy events (#537)

* wlx-capture: avoid busy loop waiting for screencopy events

* wlx-capture: block while waiting for screencopy events
This commit is contained in:
Hiina 2026-06-09 02:52:31 -06:00 committed by GitHub
parent 6dc76c881f
commit 37896620eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ where
let mut maybe_dmabuf = None; let mut maybe_dmabuf = None;
'receiver: loop { 'receiver: loop {
for event in rx.try_iter() { for event in rx.iter() {
match event { match event {
ScreenCopyEvent::Buffer { .. } => { ScreenCopyEvent::Buffer { .. } => {
log::trace!("{name}: ScreenCopy Buffer event received"); log::trace!("{name}: ScreenCopy Buffer event received");