Skip to content

Commit

Permalink
wayland: handle left/right tiling too
Browse files Browse the repository at this point in the history
refs: #5897
  • Loading branch information
wez committed Sep 22, 2024
1 parent c75d300 commit d7938cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions window/src/os/wayland/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1268,6 +1268,11 @@ impl WaylandState {
if let Some((w, h)) = configure.suggested_bounds {
pending_event.configure.replace((w / 2, h));
}
} else if configure.state.contains(SCTKWindowState::TILED_LEFT | SCTKWindowState::TILED_RIGHT) && is_frame_hidden {
// Tiled window without borders will take exactly half of the screen.
if let Some((w, h)) = configure.suggested_bounds {
pending_event.configure.replace((w, h / 2));
}
}
log::debug!(
"Config: self.window_state={:?}, states: {:?} {:?}",
Expand Down

0 comments on commit d7938cb

Please sign in to comment.