mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #545] [MERGED] feat(wm): ultrawide layout resizing #980
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/545
Author: @NotLebedev
Created: 9/25/2023
Status: ✅ Merged
Merged: 10/7/2023
Merged by: @LGUG2Z
Base:
master← Head:ultrawide-resize📝 Commits (5)
51e45c4Allow different resize constraints for layouts9daddebAdd resize constraints for UltrawideVerticalStack layout0dd00ebfeat(wm): Use resize_dimensions in calculate for ultrawide layout2f9c908feat(wm): Enable ultrawide layout in DefaultLayout::resize9bf7d0ffeat(wm): refactor ultrawide resize calculation📊 Changes
3 files changed (+265 additions, -80 deletions)
View changed files
📝
komorebi-core/src/arrangement.rs(+188 -79)📝
komorebi-core/src/default_layout.rs(+1 -1)📝
komorebi/src/workspace.rs(+76 -0)📄 Description
Currently only BSP layout and primary container of custom layouts can be resized. BSP layout is not very good for ultrawide screens and resizing only primary container is limiting. This PR adds resizing for
ultrawide-vertical-stacklayout and refactors some code related to resize calculation.Workspace::enforce_resize_constraintscan now enforce different constraints for different layouts and for those layouts that can not be resizedresize_dimensionsis explicitly set to 0 (previously everything was constrained as for BSP)ultrawide-vertical-stacklayout, which can be resized differently then BSPultrawide-vertical-stacknow applyresize_dimensionsvia new functioncalculate_ultrawide_adjustment. Base layout is kept the same, resizing changes are applied on top🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.