mirror of https://github.com/wayvr-org/wayvr.git
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:
parent
6dc76c881f
commit
37896620eb
|
|
@ -227,7 +227,7 @@ where
|
|||
let mut maybe_dmabuf = None;
|
||||
|
||||
'receiver: loop {
|
||||
for event in rx.try_iter() {
|
||||
for event in rx.iter() {
|
||||
match event {
|
||||
ScreenCopyEvent::Buffer { .. } => {
|
||||
log::trace!("{name}: ScreenCopy Buffer event received");
|
||||
|
|
|
|||
Loading…
Reference in New Issue