diff options
| author | Max Verevkin <maxxverrr@gmail.com> | 2022-07-19 11:10:22 +0300 |
|---|---|---|
| committer | Max Verevkin <maxxverrr@gmail.com> | 2022-07-19 11:10:22 +0300 |
| commit | 2504e7207009d7fd3c1a19f15e4295b6a2579650 (patch) | |
| tree | 34c31592b7f98dbc80fa5f13f96ad9709c3043d2 /src/main.rs | |
| parent | 6d2a9b349470f905025c0a6be027a8ba8227b972 (diff) | |
| download | i3bar-mango-2504e7207009d7fd3c1a19f15e4295b6a2579650.tar.gz | |
schedule frames / refactor
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs index a77d1be..823a137 100644 --- a/src/main.rs +++ b/src/main.rs @@ -53,7 +53,7 @@ default_environment!(Env, fn main() { env_logger::init(); - let (env, display, queue) = new_default_environment!( + let (env, _display, queue) = new_default_environment!( Env, fields = [ layer_shell: SimpleGlobal::new(), @@ -74,7 +74,7 @@ fn main() { output.release(); } else { info!("Output detected"); - let surface = env_handle.create_surface().detach(); + let surface = env_handle.create_surface(); let pool = env_handle .create_auto_pool() .expect("Failed to create a memory pool!"); @@ -188,8 +188,6 @@ fn main() { } loop { - bar_state.handle_events(); - display.flush().unwrap(); if let Err(e) = event_loop.dispatch(None, &mut bar_state) { bar_state.set_error(e.to_string()); } |
