summaryrefslogtreecommitdiff
path: root/src/layout/algorithm/tiled/scrolling
Commit message (Collapse)AuthorAgeFilesLines
* algo/scrolling: various scrolling view related bugfixes (#13974)erstarr2026-05-082-7/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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/scrolling: fix edge detection in recalculate() (#14359)Vaxry2026-05-081-4/+9
| | | ref #14339
* gestures: add scroll_move (#14063)Vaxry2026-05-072-0/+166
|
* layout/scrolling: handle fullscreen manually (#14190)Vaxry2026-05-074-48/+448
| | | Makes scroll handle fullscreen by itself, allowing for fs scrolls.
* config/errors: Report and categorize errors properly for actions (#14192)Vaxry2026-04-282-38/+43
| | | | 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-262-23/+23
| | | Adds a new lua config manager, which will automatically be used if there is a lua config present.
* algo/scroll: add center for centering the current col (#14059)Vaxry2026-04-171-0/+11
| | | ref #14027
* algo/scrolling: add expel, consume, and consume_or_expel (#13869)Vaxry2026-04-021-6/+62
| | | ref https://github.com/hyprwm/Hyprland/discussions/13403\#discussioncomment-15972750
* algo/scrolling: improve behavior with focus_fit_method = center (#13795)fvla2026-03-262-3/+5
|
* config: cleanup the entire config infrastructure (#13785)Vaxry2026-03-201-4/+5
| | | | Massively refactors the config infrastructure, sorely needed and will be req'd for the lua stuff
* window/rules: add scrolling_width (#13754)ItsOhen2026-03-172-8/+9
|
* algo/scroll: fix std::clamp assertion crash on resume from suspend (#13737)Nathan Ollerenshaw2026-03-152-1/+22
|
* algo/scroll: reverse horizontal dir mapping of vertical scroll directions ↵Sola2026-03-131-4/+4
| | | | (#13647)
* layout: fix crash on monitor reconnect due to stale workspace statematjam2026-03-101-1/+5
| | | | Guard against null/expired workspace and monitor pointers during layout recalculation triggered by arrangeMonitors after sleep/wake.
* algo/scroll: fix unsigned wrap (#13634)Yujon Pradhananga2026-03-071-0/+3
|
* algo/scrolling: add config options for focus and swapcol wrapping (#13518)Thedudeman2026-03-051-6/+15
|
* core: fix i586 build (#13550)Florian "sp1rit2026-03-041-1/+1
| | | Signed-off-by: Florian "sp1rit"​ <sp1rit@disroot.org>
* algo/scrolling: fix rare crashVaxry2026-03-031-1/+1
|
* layout/algos: use binds:window_direction_monitor_fallback for moves (#13508)Vaxry2026-03-021-1/+7
| | | ref https://github.com/hyprwm/Hyprland/discussions/13473
* algo/scrolling: fix offset on removeTarget (#13515)Vaxry2026-03-021-4/+8
|
* algo/dwindle: use focal point correctly for x-ws moves (#13514)Vaxry2026-03-021-1/+1
|
* algo/scroll: improve directional moves (#13423)Vaxry2026-03-024-51/+114
|
* layout/scroll: fix configuredWidths not setting properly on new workspaces ↵Thedudeman2026-03-021-11/+18
| | | | (#13476)
* layout/scrolling: fix size_t underflow in idxForHeight (#13465)Yujon Pradhananga2026-03-011-1/+3
|
* scroll: clamp column widths properlyVaxry2026-03-012-9/+14
| | | | ref https://github.com/hyprwm/Hyprland/discussions/13458
* algo/scrolling: adjust focus callbacks to be more intuitiveVaxry2026-02-244-15/+36
|
* algo/scrolling: fix crashes on destroying wsVaxry2026-02-241-1/+6
| | | | ref #13324
* event: refactor HookSystem into a typed event bus (#13333)Vaxry2026-02-222-18/+15
| | | | | Refactors the old HookSystem into a typed event bus with clear separation, discovery and types.
* layout: rethonk layouts from the ground up (#12890)Vaxry2026-02-214-0/+1925
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.