Ivan Molodetskikh
4e0aa39113
[cfg-breaking] Move layout settings into their own scope
2024-01-06 13:04:21 +04:00
Ivan Molodetskikh
46d5f5ec4d
Add randomized border to proptest
2023-12-29 11:43:16 +04:00
Ivan Molodetskikh
c64e96d0d8
Add test with i32::MAX max_size
2023-12-29 11:42:54 +04:00
Ivan Molodetskikh
44d3a5b9a2
Use saturating_sub in window_height_for_tile_height()
2023-12-29 11:38:01 +04:00
Ivan Molodetskikh
56174b2c34
Add move-column-to-{first,last}
2023-12-29 08:01:02 +04:00
Ivan Molodetskikh
d6c553091f
Add focus-column-{first,last}
2023-12-29 07:51:14 +04:00
Ivan Molodetskikh
f3e5e13c45
Activate windows only on active monitors
...
This matches what we do in advance_animations().
2023-12-28 09:09:28 +04:00
Ivan Molodetskikh
b13892ca63
Activate windows when clicking on the border
2023-12-28 08:45:12 +04:00
Ivan Molodetskikh
777ad4ee5c
Rename window -> tile, fix popup unconstraining window_y
...
I missed the window_y thing and found it thanks to the rename. Too lazy
to split it into a commit.
2023-12-28 08:25:42 +04:00
Ivan Molodetskikh
c21805bf70
layout: Refactor to support window decorations, add border and fullscreen backdrop
...
Windows are now wrapped in Tiles, which keep track of window-specific
decorations. Particularly, I implemented a black fullscreen backdrop,
which finally brings fullscreened windows smaller than the screen in
line with how the Wayland protocol says they should look—centered in a
black rectangle. I also implemented window borders, which are similar to
the focus ring, but always visible (and hence affect the layout and
sizing).
2023-12-27 21:51:42 +04:00
Ivan Molodetskikh
bfc2418267
Make LayoutElement more visual-geometry-based
2023-12-26 17:40:25 +04:00
Ivan Molodetskikh
c048abc8b5
layout: Add Column::position
2023-12-26 10:29:00 +04:00
Ivan Molodetskikh
4dd7578fe7
layout: Use column.contains more
2023-12-25 11:06:03 +04:00
Ivan Molodetskikh
0c671ee493
Remove dependency of LayoutElement on SpaceElement
2023-12-24 18:18:44 +04:00
Ivan Molodetskikh
324c1efd04
Remove Clone bound from LayoutElement
...
It is no longer necessary.
2023-12-24 18:02:13 +04:00
Ivan Molodetskikh
489a225fae
Add and use remove_window_by_idx
2023-12-24 18:00:46 +04:00
Ivan Molodetskikh
85cb4b42f6
Remove clones from active_window
2023-12-24 17:40:30 +04:00
Ivan Molodetskikh
be2e551a89
Move clones up from find_window_and_output
2023-12-24 17:38:13 +04:00
Ivan Molodetskikh
ed3080d908
Split layout mod into files
...
No functional change intended.
2023-12-24 15:10:09 +04:00
Ivan Molodetskikh
461ce5f363
Move output_size to utils
2023-12-24 14:30:19 +04:00
Ivan Molodetskikh
624c799ebf
Move layout.rs into its own module
2023-12-24 14:20:50 +04:00