diff options
| author | MaxVerevkin <maxxverrr@gmail.com> | 2025-01-09 01:20:25 +0200 |
|---|---|---|
| committer | MaxVerevkin <maxxverrr@gmail.com> | 2025-01-09 01:20:25 +0200 |
| commit | 6e7d51972ee781b37e65b362063f4e3aebefa28e (patch) | |
| tree | c90a799a0a37a0e1b0927b49561bfddd1917a200 /src/main.rs | |
| parent | 8c3c0df4a5904aaf5d7072ca14ea6e9dd7fb326c (diff) | |
| download | i3bar-mango-6e7d51972ee781b37e65b362063f4e3aebefa28e.tar.gz | |
update wayrs-client and other deps
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 076d17b..598864a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -43,9 +43,11 @@ fn main() -> anyhow::Result<()> { let [sig_read, sig_write] = pipe(libc::O_NONBLOCK | libc::O_CLOEXEC)?; signal_hook::low_level::pipe::register(SIGUSR1, sig_write)?; - let (mut conn, globals) = Connection::connect_and_collect_globals()?; + let mut conn = Connection::connect()?; + conn.blocking_roundtrip()?; + let mut el = EventLoop::new(); - let mut state = State::new(&mut conn, &globals, &mut el, args.config.as_deref()); + let mut state = State::new(&mut conn, &mut el, args.config.as_deref()); conn.flush(IoMode::Blocking)?; el.add_on_idle(|ctx| { |
