fix(window-state): Use outer position (#276)

This commit is contained in:
Parker McMullin
2023-03-10 13:35:09 -07:00
committed by GitHub
parent 70e2ad0f3b
commit b49d8addda
+1 -1
View File
@@ -225,7 +225,7 @@ impl<R: Runtime> WindowExtInternal for Window<R> {
}
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 {