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

@ -38,7 +38,7 @@ use smithay::{
desktop::{layer_map_for_output, space::SpaceElement},
input::{pointer::GrabStartData as PointerGrabStartData, Seat},
output::Output,
reexports::wayland_server::protocol::wl_surface::WlSurface,
reexports::wayland_server::{protocol::wl_surface::WlSurface, Client},
utils::{Buffer as BufferCoords, IsAlive, Logical, Physical, Point, Rectangle, Scale, Size},
wayland::seat::WaylandFocus,
xwayland::X11Surface,
@ -103,8 +103,8 @@ impl Workspace {
self.tiling_layer.animations_going()
}
pub fn update_animations(&mut self, handle: &LoopHandle<'static, crate::state::Data>) {
self.tiling_layer.update_animation_state(handle)
pub fn update_animations(&mut self) -> HashMap<ClientId, Client> {
self.tiling_layer.update_animation_state()
}
pub fn commit(&mut self, surface: &WlSurface) {