summaryrefslogtreecommitdiff
path: root/src/desktop
Commit message (Collapse)AuthorAgeFilesLines
* algo/scrolling: various scrolling view related bugfixes (#13974)erstarr2026-05-085-6/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* config: allow hashes for parsing colors (#14337)Vaxry2026-05-082-3/+5
|
* desktop/workspace: fix visibility criteria matching (#14349)Vaxry2026-05-081-2/+9
| | | ref https://github.com/hyprwm/Hyprland/discussions/14233
* layout/scrolling: handle fullscreen manually (#14190)Vaxry2026-05-075-11/+46
| | | Makes scroll handle fullscreen by itself, allowing for fs scrolls.
* windows/focus: add fallbacks when focussing workspaces (#14270)fazzi2026-05-043-2/+19
|
* desktop/windowRule: add parser switch for confine pointer (#14263)fazzi2026-05-021-0/+1
|
* desktop/windowRule: add `confine_pointer` window rule (#13379)fazzi2026-05-024-4/+12
|
* config/workspace-rules: support modifying persistent and monitor (#14217)shezdy2026-04-301-3/+3
| | | | | * workspace rules: support modifying persistent and monitor * support modifying isDefault
* desktop/window: refactor over fullscreen stateVaxry2026-04-294-4/+62
|
* desktop/window: expand hidden into proper statesVaxry2026-04-294-17/+71
|
* desktop/window: add alpha container for alpha calculationsVaxry2026-04-293-38/+273
|
* workspace: remove deprecated and unused members (#14198)ImperishableSecret2026-04-282-15/+0
| | | Clean up CWorkspace by removing deprecated m_defaultFloating, m_defaultPseudo, and unused m_wlrCoordinateArr
* config/lua: add ExpressionVec2, allow using a table for vec2 rules (#14197)Vaxry2026-04-287-35/+88
|
* desktop/rule: cleanup inheritance, use templates to avoid dupVaxry2026-04-287-88/+94
|
* desktop/rule: use Numeric for number parsingVaxry2026-04-282-30/+85
|
* desktop/layerRule: use variants for storage internallyVaxry2026-04-283-32/+108
| | | | Improves storage: less dynamic parsing, immediate config errors, faster.
* desktop/windowRule: use variants for storage internallyVaxry2026-04-283-208/+426
| | | | Improves storage: less dynamic parsing, immediate config errors, faster.
* desktop/view: fix SIGABRT in CWindow::onUnmap when monitor is expired (#14148)xxyangyoulin2026-04-271-2/+5
| | | | | | m_monitor is a WP<CMonitor> (weak_ptr). In onUnmap(), calling m_monitor->activeWorkspaceID() without .lock() causes SIGABRT when the monitor has been destroyed before the XWayland unmap event arrives, e.g. when a window on a special workspace is unmapped.
* config/lua: init lua config manager, use lua if available (#13817)Vaxry2026-04-2615-86/+121
| | | Adds a new lua config manager, which will automatically be used if there is a lua config present.
* workspace: fix missing null access guard (#14119)ssareta2026-04-221-0/+3
|
* input: implement follow_mouse_shrink (#13707)Mihail Costea2026-04-201-1/+2
| | | | | | | | | | | | | | | | | * input: implement follow_mouse_shrink Add a new config option `input:follow_mouse_shrink` (INT, 0-300, default 0) that shrinks inactive window hitboxes by the specified number of pixels for focus detection purposes. This creates a dead zone in gaps between windows where moving the cursor will not trigger a focus change. The shrink only applies to inactive (non-focused) windows and only during mouse-move focus checks (follow_mouse = 1). Click and scroll interactions are unaffected — clicking on a window in the shrunk area still works normally once the window is focused. Closes #9973 * tests: add integration test for follow_mouse_shrink
* cleanup: avoid repeated weak_ptr lock() calls in conditions (#14057)Visal Vijay2026-04-121-1/+1
|
* input: fix focus_on_close=2 (MRU) routing to cursor path instead of ↵Lucas Zanoni⠀⠀⠀⠀⠀ ⠀╱|、 ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ (˚ˎ 。7 ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ |、˜〵 ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀じしˍ,)ノ2026-04-121-1/+1
| | | | getNextCandidate (#13969)
* rules: make rule prop reset less cursed (#14003)Pppp11162026-04-082-72/+62
|
* desktop/popup: cache tree countVaxry2026-04-074-11/+45
|
* desktop/popup: cache popup extentsVaxry2026-04-073-22/+129
| | | | caches popup extents in the head to avoid potentially expensive traversals
* desktop/history: include ranges header (#14000)Linux User2026-04-051-0/+2
| | | Fixes error `no member named 'views' in namespace 'std'` on llvm/musl
* subsurface: use geometry-aware damage and recurse into nested trees (#13933)Anubhav2026-04-052-5/+33
| | | | | | | | | | | | | | | * subsurface: use geometry-aware damage and recurse into nested trees Replace per-surface damageSurface() calls in recheckDamageForSubsurfaces() with box-based damage that tracks each subsurface's last known global position and size. When geometry changes, both the old and new areas are damaged to correctly clear stale pixels and paint the new location. Additionally, recurse into child subsurfaces so that nested subsurface trees are properly damage-checked, with a depth limit of 32 to guard against cycles. Cached geometry is invalidated on map/unmap to avoid stale comparisons across surface lifecycle transitions. * clang-format
* xwayland: pipe through monitor in coordinate mapping (#13700)Andreas Backx2026-04-051-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | * xwayland: prefer monitor-aware hover coords Introduce monitor-aware XWayland coordinate helpers and keep the X11 hover path anchored to the main surface box while preserving detailed debug logging, reducing dependence on nearest-monitor guesses in layout-sensitive input paths. * xwayland: use window monitor for reported coords Report X11 window positions through the window's known monitor instead of the generic nearest-monitor heuristic so boundary-aligned outputs keep stable XWayland coordinates. * xwayland: use window monitor for real position restore Convert XWayland geometry back into compositor space using the window's current monitor when available so vertically offset layouts do not round-trip through the wrong output. * xwayland: use window monitor for unmanaged geometry Restore override-redirect X11 geometry through the window's known monitor so helper windows and popups avoid nearest-monitor misclassification on offset layouts. * xwayland: remove monitor conversion debug logging Drop the temporary XWayland hover and coordinate conversion diagnostics now that the monitor-selection bug is confirmed and the window-monitor based conversions fix the issue. * xwayland: drop unrelated focused-motion change Remove the exploratory X11-specific pointer focus scaling from InputManager so the monitor mapping fix stays narrowly scoped to the XWayland coordinate conversion changes that actually resolve the bug. * clang-format XWaylandManager
* desktop/window: optimize getRealBorderSize()Vaxry2026-04-042-2/+18
|
* desktop/window: reduce window deco updates (#13980)Vaxry2026-04-041-3/+12
| | | AVARDAMAGE_ENTIRE doesn't mean the geometry changed, so no point in an expensive update
* render: fix layer blur_popups ignoring ignore_alpha when blur is off (#13947)Mihai Fufezan2026-04-022-0/+5
|
* renderer: refactor part 7: api fixes (#13631)UjinT342026-03-283-5/+5
| | | | | | | Part 7 of ujin's refactors --------- Co-authored-by: Vaxry <vaxry@vaxry.net>
* desktop/reserved: do not crash on invalid box init (#13880)Vaxry2026-03-283-2/+21
| | | ref #13879
* desktop/window: guard null monitor in xwaylandSizeToReal (#13876)xxyangyoulin2026-03-281-1/+1
|
* renderer/deco: add glow decoration (#13862)Vaxry2026-03-272-0/+18
|
* desktop/workspaceHistory: small refactor to work better with multi monitor ↵Mr-Stoneman2026-03-262-86/+64
| | | | setups (#13632)
* overridableVar: fix reassignmentVaxry2026-03-261-1/+1
| | | | we don't want to remove already set props with our reassignmemnt
* layersurface: simulate mouse movement on layer change (#13747)Blue2026-03-211-0/+3
|
* config: cleanup the entire config infrastructure (#13785)Vaxry2026-03-2011-91/+197
| | | | Massively refactors the config infrastructure, sorely needed and will be req'd for the lua stuff
* layershell: fix popup crash with nullptr mon (#13763)UjinT342026-03-171-7/+6
|
* window/rules: add scrolling_width (#13754)ItsOhen2026-03-175-4/+13
|
* view: consolidate group flags and apply window rules (#13694)Kon2026-03-172-8/+15
| | | | | | | | | * view: consolidate group flags and apply window rules Replace individual boolean flags with a bitmask for group policies and ensure that window-specific group rules are correctly inherited when windows are initialized or added to a group. * tests: add cases for locked groups and invade rule Add tests to verify window grouping behavior, specifically checking that locked groups prevent merging by default and that the 'invade' group rule correctly overrides this lock policy.
* desktop/rules: fix static rules and content type. (#13725)ItsOhen2026-03-153-26/+35
| | | | Hopefully for the last time in a while. Also a lot easier to add in new static types with the recheck done in window map instead of the rule.
* config/workspacerule: add animation style (#13380)ItsOhen2026-03-132-3/+6
|
* desktop/windowRule: fix matching CONTENT (#13636)Vaxry2026-03-072-2/+2
| | | ref #13596
* renderer: refactor resources and flags (#13471)UjinT342026-03-076-22/+25
|
* layerrules: add dynamically registered rules for plugins (#13331)Virt2026-03-062-0/+43
| | | | | | | | | * layerrules: add dynamically registered rules for plugins * be gone * layerrules: add layer tests with waybar * fix: use kitty layers instead of waybar
* desktop/rules: fix empty workspace handling (#13544)justin40462026-03-051-2/+3
|
* desktop/window: don't group modalsVaxry2026-03-031-0/+1
|