mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-16 05:41:16 +01:00
Dragging a tile's edge was unreliable: long drags were dropped, the divider next to a different window drifted by a few points, and in recordings made with komorebi-recorder a drag to the left shrank the tile instead of growing it. This fixes the causes that were found there. Resize bounds: bump komorebi-layouts and komorebi-themes to LGUG2Z/komorebi@f08aa55, where DefaultLayout::resize only accumulates and no longer refuses any adjustment larger than half of the container's own size. resize_window now grants the largest amount that keeps every tile at least a tenth of the work area (or as large as it already is), found by bisection, instead of all or nothing. Keyboard resizing goes through the same path. RUSTSEC-2024-0449 is ignored in deny.toml, as upstream does in the same bump. The dragged container: ResizeStart records the rect of the dragged window once, since AXWindowResized fires again all through a drag, and ResizeEnd hands it to the new WindowManager::resize_by_drag along with the rect the window ended in. That resizes the container of the dragged window instead of the focused one, for each edge that moved, instead of guessing the edges from the difference to latest_layout (which made apps that snap to a grid of cells resize edges that nobody touched). Where the drag began: AXWindowResized is first reported after the edge has moved, and handlers run one at a time, so the rect recorded as the start can already be 22 points into the drag, or be the rect the drag ended in. An edge that ended up more than 32 points from its tile is measured from its tile edge; every other edge from the recorded start. The reaper: it re-tiled the focused workspace on every mouse-up and key-up to find windows that had gone away. That ran as soon as the button went up, ahead of the ResizeEnd queued behind slower handlers, so the window was back on its tile when ResizeEnd read where it had been dropped and the drag was measured backwards. It now only looks for windows that no longer exist and reaps them, without moving any window. The tests reproduce each of these, including the numbers from the recordings: a first step of 22 points, a drag already over when it was first seen, and a mouse-up that must leave the layout alone.
49 lines
1.1 KiB
TOML
49 lines
1.1 KiB
TOML
[workspace]
|
|
|
|
resolver = "2"
|
|
members = [
|
|
"komorebi",
|
|
"komorebi-bar",
|
|
"komorebi-client",
|
|
"komorebic",
|
|
"version",
|
|
]
|
|
|
|
[workspace.package]
|
|
version = "0.1.0"
|
|
|
|
[workspace.dependencies]
|
|
komorebi-themes = { git = "https://github.com/LGUG2Z/komorebi", rev = "f08aa55511d77ca56ab0e789efabeb0a237a463e" }
|
|
komorebi-layouts = { git = "https://github.com/LGUG2Z/komorebi", rev = "f08aa55511d77ca56ab0e789efabeb0a237a463e", features = [
|
|
"darwin",
|
|
"schemars",
|
|
] }
|
|
|
|
chrono = "0.4"
|
|
chrono-tz = "0.10"
|
|
clap = { version = "4", features = ["derive", "wrap_help"] }
|
|
color-eyre = "0.6"
|
|
crossbeam-channel = "0.5"
|
|
crossbeam-utils = "0.8"
|
|
dirs = "6"
|
|
dunce = "1"
|
|
eframe = "0.33"
|
|
egui_extras = "0.33"
|
|
hotwatch = "0.5"
|
|
lazy_static = "1"
|
|
parking_lot = "0.12"
|
|
pastey = "0.2"
|
|
schemars = "1.1"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = { package = "serde_json_lenient", version = "0.2" }
|
|
shadow-rs = "1"
|
|
sysinfo = "0.38"
|
|
thiserror = "2"
|
|
tracing = "0.1"
|
|
tracing-appender = "0.2"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
which = "8"
|
|
|
|
[workspace.metadata.crane]
|
|
name = "komorebi-workspace"
|