summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* keybinds: simulate movement on empty focus after workspace changevaxerski2023-09-131-1/+4
|
* input: don't refocus on switched workspace on the same monitorvaxerski2023-09-133-9/+23
|
* layout: add direction parameter to onWindowCreated and friends (#3269)memchr2023-09-138-59/+69
| | | | | | | | | | | | | | | | | | * feat(layout): add direction parameter to onWindowCreated and friends In addition: - Implement directional moveWindowOutOfGroup for `movewindoworgroup` when using dwindle layout. (augmentation of #3006) - Replace `DWindleLayout::OneTimeFocus` with `IHyprLayout::eDirection`. - Slight formatting change (clang-format). * fix: nullptr dereference in dwindle window creation * refactor: generalized eDirection * refactor: eliminate DIRECTION_NONE * Update IHyprLayout.hpp
* layout: Allow the layout to control how windows are raised in groups (#3275)outfoxxed2023-09-123-7/+26
| | | | | | | | | | | | * Allow the layout to control how windows are raised in groups Previously windows could only be focused if they weren't hidden or were part of a group. This shifts the logic for picking the window out of a group to the layout allowing for alternate group implementations to function normally. * Fix doc comment consistency * Fix tabs in comments
* windowrules: fix workspace rule separationvaxerski2023-09-121-8/+8
| | | | fixes #3265
* varlist: move to a separate header, add joinvaxerski2023-09-124-69/+90
|
* config: add wildcard handling in source= (#3276)memchr2023-09-121-33/+43
|
* windowrules: add on-screen constraint to wrv2 'move' (#3247)alaricljs2023-09-121-4/+17
| | | | | | | | | | | | | * add on-screen constraint to wrv2 'move' * review changes * std::clamp * more parens --------- Co-authored-by: Leeman <lstrout@enlj.com>
* fix: inconsistent behaviour where last workspace was not saved (#3261)memchr2023-09-112-0/+2
|
* keybinds: unify changeworkspace dispatcher (#3250)memchr2023-09-112-60/+27
| | | | | | | | | | | * refactor: changeworkspace dispatcher * refactor: remove redundant focusWindow calls * refactor(changeworkspace): warp cursor to middle of last focused window * refactor: use rememberPrevWorkspace * Fix: `CWorkspace::rememberPreWorkspace` condition is illogical
* refactor: fix missed middle() call in CKeybindManagervaxerski2023-09-111-1/+1
|
* keybinds: movewindow to screen edge for floating windows (#3245)alaricljs2023-09-111-0/+18
| | | | | | | | | | | | * movewindow to screen edge for floating windows * review changes * constify vars --------- Co-authored-by: Leeman <lstrout@enlj.com> Co-authored-by: vaxerski <vaxry@vaxry.net>
* refactor: utilize 'middle()' method for window/montior center (#3253)memchr2023-09-117-23/+20
|
* input: do not process mouse in unsafe statevaxerski2023-09-101-2/+2
|
* feat: add a new movewindoworgroup dispatcher (#3006)memchr2023-09-103-23/+108
|
* windowrules: add % to resizeparams (#3246)alaricljs2023-09-101-13/+28
| | | Co-authored-by: Leeman <lstrout@enlj.com>
* layout: add missing groupbar decoration to the window (#3235)memchr2023-09-101-0/+3
| | | | | | | | | * fix: add missing groupbar decoration to the window Add groupbar decoration to the operand window of `CWindow::insertWindowToGroup` if it does not exist, to prevent segmentation faults when mouse events are triggered after moving the window to a group, where `getDecorationByType(DECORATION_GROUPBAR)` unexpectedly returns nullptr. Also fixed a bug where the group bar disappeared when the moveIntoGroup dispatcher's operand window was in a group. * Update Window.cpp
* master: Add smart resizing option for master layout (#3210)Jeremy Huang2023-09-102-13/+166
| | | | | | | | | | | | | * add smart resizing for master layout * fix smart resizing workspace check * master layout fix smart resize when at max size * change resizing for center orientation so it doesnt use all nodes * master layout resizing, simplify code for calculating total height and weight * remove the redundant smart resizing check
* xwayland: adjust coord calculationvaxerski2023-09-101-1/+1
| | | | coord exactly at the corner would be calc'd wrong
* keybinds: ignore conditions on special releasevaxerski2023-09-101-2/+3
| | | | while the previous commit ignores mods, we also need to ignore other conditions to avoid dangling presses
* keybinds: track pressed special bindsvaxerski2023-09-102-1/+15
| | | | Ignore mods only if we're processing a special bind, and only if it's pressed. Otherwise we might shadow normal key releases via ignoring mods. Fixes #3240
* internal: Fix wlr output management (#3234)Philip Damianik2023-09-104-18/+23
|
* keybinds: ignore mods on release of special bindsvaxerski2023-09-101-3/+6
| | | | fixes #3208
* fix(layout): remove `focusWindow` calls from `onWindowCreatedTiling` (#3233)memchr2023-09-102-2/+0
|
* refactor: replace lambdas with CKeybindManager::switchToWindow (#3229)memchr2023-09-102-94/+36
| | | | | | | moves `switchToWindow` lambdas to a single private method `CKeybindManager::switchToWindow()`. fixes #3227, as a by-product of the mouse motion simulation at the end of `CKeybindManager::switchToWindow()`.
* input: don't warp region constraintsvaxerski2023-09-101-1/+1
|
* hyprctl: Make device configs queryable (#3226)Philip Damianik2023-09-092-10/+27
| | | | | | | | | | | * Make device configs queryable Signed-off-by: pdamianik <39028343+pdamianik@users.noreply.github.com> * Add set property to getoption output --------- Signed-off-by: pdamianik <39028343+pdamianik@users.noreply.github.com>
* keybinds: Do not suppress pass and mouse release (#3219)shadowmax312023-09-091-2/+2
|
* fix: focusWindow on hidden workspace triggers another focusWindow. (#3216)memchr2023-09-083-5/+5
| | | | | | | | | | | This commit address an issue where focusing a window on a hidden workspace inadvertently triggered a second `focusWindow` call due to simulated mouse movement. This behaviour led to the incorrect focus on the window under the cursor instead of target window of method `focusWindow()`, disrupting `focusurgentorlast` and `focuscurrentorlast` dispatchers. Introduced a flag to the `CMonitor::changeWorkspace()` method to prevent simulated mouse movements. This flag is set to false by default. Changed the `focusWindow()` method accordingly to set this flag to true when the target window is in a hidden workspace.
* internal: fix warningsvaxerski2023-09-075-7/+6
|
* config: disable blur special by defaultvaxerski2023-09-071-1/+1
| | | | very expensive
* hyprctl: fix missing comma in getopt -jvaxerski2023-09-061-1/+1
| | | | Fixes #3200
* internal: Remove all `.c_str()` calls when using `std::vformat` (#3198)Philip Damianik2023-09-0626-205/+199
| | | Signed-off-by: pdamianik <39028343+pdamianik@users.noreply.github.com>
* config: Integrate HASCONFIG into CConfigManager::getConfigValueSafeDevice ↵Philip Damianik2023-09-062-54/+34
| | | | (#3195)
* config/input: Improve fallback behavior for unset device config values (#3184)Philip Damianik2023-09-063-61/+64
| | | | | | | | | * Fix fallback behavior for unset device config values * Replace overload with default argument for fallback config key * Remove default value for fallback argument in source * Fix typos
* pch: add formatvaxerski2023-09-061-0/+1
|
* input/config: add button scroll lock (#3189)unrealhoang2023-09-062-0/+6
|
* animationmgr: guard monitor ptr in animationSlidevaxerski2023-09-061-2/+5
|
* config: loosen restrictions around animation keywordsvaxerski2023-09-061-22/+24
| | | | Fixes #3185, makes hyprland ignore further args if an animation is disabled
* internal: Formatter rework (#3186)Vaxry2023-09-0647-654/+669
|
* monitor: minor adjustmentsvaxerski2023-09-052-7/+2
|
* renderer: Fix blur for passes set to 0. (#3181)Dickby2023-09-051-5/+2
|
* socket2: add renameWorkspace eventvaxerski2023-09-051-0/+2
|
* animationmgr: Optimize CAnimationManager::scheduleTick a bit. (#3172)Dickby2023-09-051-5/+4
| | | | | * Optimize CAnimationManager::scheduleTick a bit. * Use integer in wl_event_source_timer_update call.
* xdgoutput: do not destroy resources on monitorRemovedvaxerski2023-09-051-1/+6
|
* build: use PCH to reduce compile time (#3095)memchr2023-09-042-0/+30
|
* config: don't enable vrr 2 for maximized workspacesvaxerski2023-09-041-10/+9
| | | | fixes #3162
* input: minor constraint fixesvaxerski2023-09-044-11/+50
| | | | fixes the confined region, warping issues, etc. Closes #3158
* xwaylandmgr: find closest output in xwayland coord translationvaxerski2023-09-041-4/+9
| | | | partially off-screen windows would be snapped to 0,0 otherwise
* master: Add orientationcycle command on MasterLayout (#3128)shadowmax312023-09-042-26/+59
|