wayland: handle left/right tiling too

refs: https://github.com/wez/wezterm/pull/5897
This commit is contained in:
Wez Furlong committed 2024-09-22 09:10:15 -07:00
1 parent c75d300f6f
commit d7938cb6b2
1 file changed
+5
+5
View File
@@ -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: {:?} {:?}",