Skip to content

Commit

Permalink
fix(wayland): wrong MAXIMIZED and FULL_SCREEN window size
Browse files Browse the repository at this point in the history
  • Loading branch information
aliaksandr-trush committed Aug 13, 2024
1 parent aacf65f commit 7e3493b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions window/src/os/wayland/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1267,6 +1267,13 @@ impl WaylandState {
state |= WindowState::MAXIMIZED;
}

// For MAXIMIZED and FULL_SCREEN window configure contains Windowed size.
// Replacing it with Wayland suggested bounds.
if state.contains(WindowState::MAXIMIZED) || state.contains(WindowState::FULL_SCREEN) {
if let Some((w, h)) = configure.suggested_bounds {
pending_event.configure.replace((w, h));
}
}
log::debug!(
"Config: self.window_state={:?}, states: {:?} {:?}",
pending_event.window_state,
Expand Down

0 comments on commit 7e3493b

Please sign in to comment.