From d7938cb6b2f5dd9214dea4e1e491d5b8f917dc1f Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 22 Sep 2024 09:10:15 -0700 Subject: [PATCH] wayland: handle left/right tiling too refs: https://github.com/wez/wezterm/pull/5897 --- window/src/os/wayland/window.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/window/src/os/wayland/window.rs b/window/src/os/wayland/window.rs index 052dd56078c..79b5800f82d 100644 --- a/window/src/os/wayland/window.rs +++ b/window/src/os/wayland/window.rs @@ -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: {:?} {:?}",