- lib/wm: split handles, drag_split, vertical rows now leave room for the lower window's title bar (fixes overlapping title bars) - compositor: pointer press/move/release on a divider resizes the split, with an ew/ns-resize cursor; button releases are only forwarded after a forwarded press Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ee698c9846
commit
7154312919
4 files changed
+290
-32
No files matched your search
+4
-3
@@ -49,9 +49,10 @@ test "bsp tiling splits 2 and 3 windows with gaps" {
|
||||
assert_eq(wm.windows[2UL].geometry, { x: 515, y: 10, w: 495, h: 680 })
|
||||
|
||||
ignore(wm.open_window(mk_win(3UL), wa))
|
||||
// Right half splits vertically: 680 - 10 = 670 -> 335 + 335
|
||||
assert_eq(wm.windows[2UL].geometry, { x: 515, y: 10, w: 495, h: 335 })
|
||||
assert_eq(wm.windows[3UL].geometry, { x: 515, y: 355, w: 495, h: 335 })
|
||||
// Right half splits vertically; rows are separated by the gap plus a 32px title bar:
|
||||
// 680 - 42 = 638 -> 319 + 319
|
||||
assert_eq(wm.windows[2UL].geometry, { x: 515, y: 10, w: 495, h: 319 })
|
||||
assert_eq(wm.windows[3UL].geometry, { x: 515, y: 371, w: 495, h: 319 })
|
||||
}
|
||||
|
||||
///|
|
||||
|
||||
Reference in new issue
Block a user