From 523bcdc5288dd990ee7905a8c762c165d44d612c Mon Sep 17 00:00:00 2001 From: Fabian-Lars Date: Wed, 7 Jun 2023 14:19:29 +0200 Subject: [PATCH] fix(window-state): correctly set decoration state if no saved state exists, fixes #421 (#424) --- plugins/window-state/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/window-state/src/lib.rs b/plugins/window-state/src/lib.rs index 2a23f35d..676baf5e 100644 --- a/plugins/window-state/src/lib.rs +++ b/plugins/window-state/src/lib.rs @@ -175,7 +175,7 @@ impl WindowExt for Window { } if flags.contains(StateFlags::DECORATIONS) { - metadata.visible = self.is_visible()?; + metadata.decorated = self.is_decorated()?; } if flags.contains(StateFlags::FULLSCREEN) {