From 570bf1cb3c1f9ffc847359009c6061e062c72871 Mon Sep 17 00:00:00 2001 From: Christian Meissl Date: Fri, 5 Jul 2024 21:49:08 +0200 Subject: bump smithay --- src/window/mapped.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/window') diff --git a/src/window/mapped.rs b/src/window/mapped.rs index 8b6b8e61..178b0a30 100644 --- a/src/window/mapped.rs +++ b/src/window/mapped.rs @@ -461,8 +461,8 @@ impl LayoutElement for Mapped { fn min_size(&self) -> Size { let mut size = with_states(self.toplevel().wl_surface(), |state| { - let curr = state.cached_state.current::(); - curr.min_size + let mut guard = state.cached_state.get::(); + guard.current().min_size }); if let Some(x) = self.rules.min_width { @@ -477,8 +477,8 @@ impl LayoutElement for Mapped { fn max_size(&self) -> Size { let mut size = with_states(self.toplevel().wl_surface(), |state| { - let curr = state.cached_state.current::(); - curr.max_size + let mut guard = state.cached_state.get::(); + guard.current().max_size }); if let Some(x) = self.rules.max_width { -- cgit