Use outer position when updating window state.

pull/276/head
Parker McMullin 2 years ago
parent 70e2ad0f3b
commit c40b3943bc
No known key found for this signature in database
GPG Key ID: 703458E36AC48C2F

@ -225,7 +225,7 @@ impl<R: Runtime> WindowExtInternal for Window<R> {
} }
if flags.contains(StateFlags::POSITION) { if flags.contains(StateFlags::POSITION) {
let position = self.inner_position()?; let position = self.outer_position()?;
if let Ok(Some(monitor)) = self.current_monitor() { if let Ok(Some(monitor)) = self.current_monitor() {
// save only window positions that are inside the current monitor // save only window positions that are inside the current monitor
if monitor.contains(position) && !is_maximized { if monitor.contains(position) && !is_maximized {

Loading…
Cancel
Save