summaryrefslogtreecommitdiff
path: root/src/layout/algorithm/tiled/dwindle/DwindleAlgorithm.cpp
Commit message (Collapse)AuthorAgeFilesLines
* algo/scrolling: various scrolling view related bugfixes (#13974)erstarr2026-05-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix scrolling view move when a grouped window is closed - prevent redundant space assignment for a grouped window that's about to be unmapped, add a `FOCUS_REASON` for unmapping grouped windows * fix focus_fallback after unmapping a window floating moving view * fix view change when changing workspaces (special and normal). add an optional `RECALCULATE_REASON` parameter to `recalculate()` calls of all algorithms. add an optional `RECALCULATE_MONITOR_REASON` parameter to `recalculateMonitor()` calls. add 2 new `FOCUS_REASON`s, for workspace change and special workspace toggle * Fix hyprctl keyword causing scrolling view move. rename INPUT_MODE_KB to INPUT_MODE_HARD since it seems to have little to do with keybinds * fix fullscreen/maximise moving the scrolling view * fix opening of layer 3 programs moving scrolling view * refactor, clean up and clang-format * fix bad decisions * fix includes, clang-format. * remove TODO * `focuswindow` no longer moves scrolling view when `follow_focus = 0` * fix: changes in a group's current window no longer casues scrolling view shift when `follow_focus = 0` * fix: `moveintogroup`, `movewindoworgroup` no longer causes scrolling view change if `follow_focus = 0` * clang-format * add `RECALCULATE_REASON_UNKNOWN`, `RECALCULATE_MONITOR_REASON_UNKNOWN`, `REMOVE_FROM_GROUP_REASON_UNKNOWN` remove optional wrapper from their enums, refactor code to work with the change * dispatches that call `switchtoWindow()` in CKeybindManager no longer cause scrolling view to move if `follow_focus = 0`. They still cause the move if `follow_focus = 1` Dispatches effected by this: `movefocus`, `cyclenext`, `focuscurrentorlast`, `focuscurrentorurgent` * Fix for Lua: switchToWondow * Fix for Lua: focus({window}) * Fix for Lua: Move Window Into Group * clang-format * Drop `hyprctl keyword` change * test: `focus({window})` with `follow_focus = false` * test: `focus({window})` with `follow_focus = true` * test: test Focus Fallback * test: Focus Fallback with groups * test: workspace change * test: special workspace toggle * test: workspace change - special to special also minor refactoring * test: close window in a group * test: move window into group `follow_focus = false` minor fix in test: expect -> assert * test: move window into group `follow_focus = true` * test: new layer * test: maximise fix in test: expect to assert. * test: fullscreen * test: `dispatch window.focus({ direction })` when `follow_focus = false` * test: `dispatch window.focus({ direction })` when `follow_focus = true` test-fix: expect -> assert * test: move focus within group when `follow_focus = false` * test: move focus within group when `follow_focus = true` * test-fix: kill all layers before killing all windows in layers test. prevents internal post test cleanup function failing to kill all layers test-fix: maximized and fullscreen swapped between their tests test-fix: testScrollingViewBehaviourMoveFocusInGroupFollowFocusTrue missing layout initialization test-fix: testScrollingViewBehaviourWorkspaceChange, testScrollingViewBehaviourCloseWindowInGroup have stale window class in a comment clang-format * catch up with main: move to new test function * clean-up the clean-up part of the tests: redundant * clang-format * pain * suffering: fix rebase fail * test: manually kill all layers since the cleanup function fails * remove test: fullscreen and maximise. scrolling has its own behaviour now
* layout/dwindle,master: return invalid layoutmsg errorsVaxry2026-05-021-1/+2
|
* config/errors: Report and categorize errors properly for actions (#14192)Vaxry2026-04-281-9/+9
| | | | Makes all errors categorized, some not displayed, some displayed. All errors can be obtained after hl.dispatch()
* config/lua: init lua config manager, use lua if available (#13817)Vaxry2026-04-261-63/+45
| | | Adds a new lua config manager, which will automatically be used if there is a lua config present.
* cleanup: avoid repeated weak_ptr lock() calls in conditions (#14057)Visal Vijay2026-04-121-1/+2
|
* layouts/dwindle: override force after window drags (#14002)Vaxry2026-04-051-1/+1
|
* config: cleanup the entire config infrastructure (#13785)Vaxry2026-03-201-0/+3
| | | | Massively refactors the config infrastructure, sorely needed and will be req'd for the lua stuff
* algo/dwindle: fix precise mouse setting (#13678)Bastien Souchu2026-03-101-5/+7
|
* algo/dwindle: Respect `force_split` when moving windows to workspaces (#13038)Nikolai Nechaev2026-03-101-10/+8
| | | | | | Respect `dwindle:force_split` not only when mapping new windows, but also when moving windows to workspaces. Fixes #13009.
* algo/dwindle: do NOT use smart_split for overridden focal point (#13635)Vaxry2026-03-091-2/+2
| | | ref #13594
* dwindle: add rotatesplit layoutmsg and tests (#13235)Mikhail2026-03-061-0/+50
|
* algo/dwindle: don't crash on empty swapsplit (#13533)Vaxry2026-03-031-15/+26
| | | ref https://github.com/hyprwm/Hyprland/discussions/13530
* layout/algos: use binds:window_direction_monitor_fallback for moves (#13508)Vaxry2026-03-021-2/+7
| | | ref https://github.com/hyprwm/Hyprland/discussions/13473
* desktop/group: respect direction when moving window out of group (#13490)André Silva2026-03-021-1/+1
|
* algo/dwindle: use focal point correctly for x-ws moves (#13514)Vaxry2026-03-021-25/+12
|
* algo/dwindle: add back splitratio (#13498)Vaxry2026-03-021-0/+19
|
* algo/dwindle: fix focal point not being properly used in movedTarget (#13373)Vaxry2026-02-261-9/+10
|
* layout: rethonk layouts from the ground up (#12890)Vaxry2026-02-211-0/+772
Rewrites layouts to be much smaller, and deal with much less annoying BS. Improves the overall architecture, unifies handling of pseudotiling, and various other improvements.