Commits
2024-08-31
Change IdCounter to be backed by an AtomicU64Ivan Molodetskikh · b790157
Change IdCounter to be backed by an AtomicU64 Let's see if anyone complains.
2024-06-20
2024-08-25
layout: Fix rounding in height distributionIvan Molodetskikh · cfa87d5
layout: Fix rounding in height distribution Rounding before checking min height could artificially increase the window height that we check, leading to an incorrectly satisfied min constraint.
layout: Clamp window height to max available in columnIvan Molodetskikh · 20cd4f5
layout: Clamp window height to max available in column When the window is alone in its column this logic intentionally isn't triggered. Until we have a floating layer, there's no other way to get a window larger than the screen, which I need.
2024-08-23
Implement window close transactionIvan Molodetskikh · c8839f7
Implement window close transaction Mainly visible with disabled animations.
2024-08-22
2024-08-15
layout: Implement weighted height distributionIvan Molodetskikh · 66f23c3
layout: Implement weighted height distribution The intention is to make columns add up to the working area height most of the time, while still preserving the ability to have one fixed-height window. Automatic heights are now distributed according to their weight, rather than evenly. This is similar to flex-grow in CSS or fraction in Typst. Resizing one window in a column still makes that window fixed, however it changes all other windows to automatic height, computing their weights in such a way as to preserve their apparent heights.
layout: Pre-subtract gaps during height distributionIvan Molodetskikh · 7a6ab31
layout: Pre-subtract gaps during height distribution Same result, but code a bit clearer.
2024-07-09
Add tolerance to view offset anim restart checkIvan Molodetskikh · 22bfec7
Add tolerance to view offset anim restart check It was getting tripped by tiny differences.
2024-07-05
Refactor and simplify new view offset calculationIvan Molodetskikh · fb636ef
Refactor and simplify new view offset calculation * Split new offset computation from starting the animation. * Simplify new column on empty workspace logic.
2024-06-19
Somewhat fix height distribution logicIvan Molodetskikh · c0ded35
Somewhat fix height distribution logic This got a bit broken with fractional layout. The current logic seems to give exact results for integer scales again, but for fractional scales sometimes the resulting height goes beyond the maximum, even clearly by more than one logical pixel. Not entirely sure why that is.
2024-06-17
Refactor layout to fractional-logicalIvan Molodetskikh · 1dae45c
Refactor layout to fractional-logical Lets borders, gaps, and everything else stay pixel-perfect even with fractional scale. Allows setting fractional border widths, gaps, struts. See the new wiki .md for more details.
2024-06-13
2024-06-11
2024-05-29
Signal fractional scale to clientsIvan Molodetskikh · e3406ac
Signal fractional scale to clients Doesn't do anything yet because we don't bind the fractional scale manager and don't allow fractional scales.
2024-06-09
Add `focus-column-right-or-first`, `focus-column-left-or-last` (#391)James Sully · Unverifieda55e385
Add `focus-column-right-or-first`, `focus-column-left-or-last` (#391) * add focus-column-right-or-first * add focus-column-left-or-last
Fix typos (#429)Ujp8LfXBJ6wCPR · Unverifiedaf6d84a
Fix typos (#429) * Fix typos reported by "typos" crate https://github.com/crate-ci/typos * Ignore typo datas -> data See https://github.com/crate-ci/typos?tab=readme-ov-file#false-positives for more configureability. --------- Co-authored-by: Carl Hjerpe <git@hjerpe.xyz> Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
2024-06-04
Add missing fullscreen checkIvan Molodetskikh · c6c17cc
Add missing fullscreen check Fixes crash when a window in a column requests to be unfullscreened.
2024-05-11
Implement named workspacesGergely Nagy · eb9bbe3
Implement named workspaces
This is an implementation of named, pre-declared workspaces. With this
implementation, workspaces can be declared in the configuration file by
name:
```
workspace "name" {
open-on-output "winit"
}
```
The `open-on-output` property is optional, and can be skipped, in which
case the workspace will open on the primary output.
All actions that were able to target a workspace by index can now target
them by either an index, or a name. In case of the command line, where
we do not have types available, this means that workspace names that
also pass as `u8` cannot be switched to by name, only by index.
Unlike dynamic workspaces, named workspaces do not close when they are
empty, they remain static. Like dynamic workspaces, named workspaces are
bound to a particular output. Switching to a named workspace, or moving
a window or column to one will also switch to, or move the thing in
question to the output of the workspace.
When reloading the configuration, newly added named workspaces will be
created, and removed ones will lose their name. If any such orphaned
workspace was empty, they will be removed. If they weren't, they'll
remain as a dynamic workspace, without a name. Re-declaring a workspace
with the same name later will create a new one.
Additionally, this also implements a `open-on-workspace "<name>"` window
rule. Matching windows will open on the given workspace (or the current
one, if the named workspace does not exist).
Signed-off-by: Gergely Nagy <niri@gergo.csillger.hu>2024-05-14
Fix interactive resize cancellingIvan Molodetskikh · d776ab7
Fix interactive resize cancelling The interactive resize may have ended, but we're still waiting for the last commit of the respective window. When cancelling, we should cancel those ones too.
2024-05-12
2024-05-11
2024-04-22
Add is_active_in_columnTheZoq2 · 47a8e75
Add is_active_in_column Add missing ``` Fix tests
2024-05-11
Render tiles flush to the right when left-resizingIvan Molodetskikh · b101f9b
Render tiles flush to the right when left-resizing This really needs a refactor...
2024-05-10
2024-05-04
Split update_render_elements() from advance_animations()Ivan Molodetskikh · 73cc007
Split update_render_elements() from advance_animations() advance_animations() is called from places like input, whereas update_render_elements() is strictly for rendering.
2024-05-03
2024-05-01
2024-04-24
2024-04-21
2024-04-19
Synchronize column removal anim on consume left/rightIvan Molodetskikh · 568c35f
Synchronize column removal anim on consume left/right Visible when consuming left/right when always-centered and differing horizontal view anim.
Separate tile X and Y movement animationsIvan Molodetskikh · 2c8d103
Separate tile X and Y movement animations Helps with the jank caused by lack of transactions when consuming to the left/right. Resize triggers a few frames later and restarts the movement. Now it only restarts the vertical and not the horizontal movement.