fix tiling window
Some checks failed
Rust / build (ubuntu-latest, stable) (push) Failing after 1m38s
Rust / build (ubuntu-latest, stable) (pull_request) Failing after 1m38s

This commit is contained in:
2026-01-19 09:25:15 +07:00
parent f5fcabd1aa
commit 178a763552
2 changed files with 88 additions and 78 deletions

View File

@@ -313,9 +313,8 @@ impl Render for Root {
let size = window.window_bounds().get_bounds().size;
let pos = e.position;
match resize_edge(pos, CLIENT_SIDE_DECORATION_SHADOW, size) {
Some(edge) => window.start_window_resize(edge),
None => window.start_window_move(),
if let Some(edge) = resize_edge(pos, CLIENT_SIDE_DECORATION_SHADOW, size) {
window.start_window_resize(edge)
};
}),
})