diff options
| author | MaxVerevkin <maxxverrr@gmail.com> | 2022-09-23 10:14:05 +0300 |
|---|---|---|
| committer | MaxVerevkin <maxxverrr@gmail.com> | 2022-09-23 10:18:24 +0300 |
| commit | a5baa2574ac0f8ff9ca8fbec0ff57145641ded47 (patch) | |
| tree | b93034333e4e89636d56b7f4ac074ce2d3861486 /src/main.rs | |
| parent | 899e07fbaac6ed28ddbac054e7957e646a38937c (diff) | |
| download | i3bar-mango-a5baa2574ac0f8ff9ca8fbec0ff57145641ded47.tar.gz | |
update dependencies
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 7f8dd38..fb52f07 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,6 +18,8 @@ mod tags; mod text; mod utils; +use std::os::unix::io::AsRawFd; + use smithay_client_toolkit::reexports::client::Connection; use tokio::io::{unix::AsyncFd, Interest}; @@ -32,12 +34,11 @@ async fn main() -> anyhow::Result<()> { let mut state = State::new(&conn, &mut event_queue); let async_fd = AsyncFd::with_interest( - event_queue.prepare_read()?.connection_fd(), + event_queue.prepare_read()?.connection_fd().as_raw_fd(), Interest::READABLE, )?; event_queue.roundtrip(&mut state)?; - event_queue.flush()?; loop { tokio::select! { |
