From 7267c44116c275021f9fe4927dad21489b0225b0 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Tue, 4 Feb 2025 16:48:54 +0100 Subject: [PATCH] shell: Cleanup zoom state --- src/shell/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shell/mod.rs b/src/shell/mod.rs index 16adb57f..3e21fac8 100644 --- a/src/shell/mod.rs +++ b/src/shell/mod.rs @@ -2258,6 +2258,10 @@ impl Shell { { zoom_state.previous_level.take(); } + + if zoom_state.level == 1. && zoom_state.previous_level.is_none() { + self.zoom_state.take(); + } } self.workspaces