Skip to content

Commit

Permalink
use activated stream again
Browse files Browse the repository at this point in the history
  • Loading branch information
feschber committed Mar 16, 2024
1 parent c24ed52 commit 7aea9b8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/backend/producer/libei.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use anyhow::{anyhow, Result};
use ashpd::desktop::input_capture::{Barrier, Capabilities, InputCapture, Zones, Activated};
use ashpd::desktop::input_capture::{Barrier, Capabilities, InputCapture, Zones};
use futures::StreamExt;
use reis::{
ei::{self, keyboard::KeyState},
Expand Down Expand Up @@ -128,14 +128,11 @@ impl LibeiProducer {
input_capture.enable(&session).await?;

let mut activated = input_capture.receive_activated().await?;
let mut activated = input_capture.receive_all_signals().await?;

loop {
log::debug!("receiving activation token");
let activated = activated.next().await.unwrap();
let activated = activated.next().await.ok_or(anyhow!("error receiving activation token"))?;
log::debug!("activation token: {activated:?}");
let activated: Activated = activated.body().deserialize().unwrap();
log::debug!("activated: {activated:?}");


let mut entered = false;
Expand Down

0 comments on commit 7aea9b8

Please sign in to comment.