From b49d8addda57e7a111a7b43136b7a4943bcd803a Mon Sep 17 00:00:00 2001 From: Parker McMullin Date: Fri, 10 Mar 2023 13:35:09 -0700 Subject: [PATCH] fix(window-state): Use outer position (#276) --- 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 2c82c1a3..a4db0822 100644 --- a/plugins/window-state/src/lib.rs +++ b/plugins/window-state/src/lib.rs @@ -225,7 +225,7 @@ impl WindowExtInternal for Window { } if flags.contains(StateFlags::POSITION) { - let position = self.inner_position()?; + let position = self.outer_position()?; if let Ok(Some(monitor)) = self.current_monitor() { // save only window positions that are inside the current monitor if monitor.contains(position) && !is_maximized {