tiling: Better synchronize configures

This commit is contained in:
Victoria Brekenfeld 2023-07-05 23:48:10 +02:00
parent 5fc315c950
commit c145b3c35a
5 changed files with 54 additions and 39 deletions

View file

@ -12,6 +12,8 @@ use anyhow::{Context, Result};
use std::{ffi::OsString, os::unix::prelude::AsRawFd, sync::Arc};
use tracing::{error, info, warn};
use crate::wayland::handlers::compositor::client_compositor_state;
pub mod backend;
pub mod config;
#[cfg(feature = "debug")]
@ -66,10 +68,13 @@ fn main() -> Result<()> {
}
// trigger routines
data.state
.common
.shell
.update_animations(&data.state.common.event_loop_handle);
let clients = data.state.common.shell.update_animations();
{
let dh = data.display.handle();
for client in clients.values() {
client_compositor_state(&client).blocker_cleared(&mut data.state, &dh);
}
}
data.state.common.shell.refresh();
state::Common::refresh_focus(&mut data.state);