summaryrefslogtreecommitdiff
path: root/src/managers
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-132-7/+18
| | | | | | | | | | | | | | | | | | * 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
* fix: inconsistent behaviour where last workspace was not saved (#3261)memchr2023-09-111-0/+1
|
* keybinds: unify changeworkspace dispatcher (#3250)memchr2023-09-111-59/+26
| | | | | | | | | | | * 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-111-12/+7
|
* input: do not process mouse in unsafe statevaxerski2023-09-101-2/+2
|
* feat: add a new movewindoworgroup dispatcher (#3006)memchr2023-09-102-22/+106
|
* 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
* keybinds: ignore mods on release of special bindsvaxerski2023-09-101-3/+6
| | | | fixes #3208
* 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()`.
* keybinds: Do not suppress pass and mouse release (#3219)shadowmax312023-09-091-2/+2
|
* internal: fix warningsvaxerski2023-09-071-1/+0
|
* internal: Remove all `.c_str()` calls when using `std::vformat` (#3198)Philip Damianik2023-09-067-25/+23
| | | Signed-off-by: pdamianik <39028343+pdamianik@users.noreply.github.com>
* config: Integrate HASCONFIG into CConfigManager::getConfigValueSafeDevice ↵Philip Damianik2023-09-061-51/+29
| | | | (#3195)
* config/input: Improve fallback behavior for unset device config values (#3184)Philip Damianik2023-09-061-37/+49
| | | | | | | | | * 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
* input/config: add button scroll lock (#3189)unrealhoang2023-09-061-0/+4
|
* animationmgr: guard monitor ptr in animationSlidevaxerski2023-09-061-2/+5
|
* internal: Formatter rework (#3186)Vaxry2023-09-0610-60/+60
|
* 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.
* input: minor constraint fixesvaxerski2023-09-041-9/+16
| | | | 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
* dwindle: add proper movement for window move bindsvaxerski2023-09-041-3/+3
| | | | ditches the "movewindow = swapwindow" mechanism. Fixes #2804
* refactor: replace manual iteration of CWindow with existing methods (#3147)memchr2023-09-041-4/+1
|
* socket2: added "activespecial" IPC event (#3163)MightyPlaza2023-09-041-29/+2
|
* internal: Revert rounding of window size (#3153)staz2023-09-031-2/+2
| | | | | | | | | * Revert "renderer: round coords and size in renderWindow" This reverts commit fc0c1896e097b3c3b2170ae69d38724e43960fe1. * Revert "xwaylandmgr: round reported sizes" This reverts commit 2985e20e6a5868e710aa3bdaa2789a2023010611.
* keybinds: fixup global conditionsvaxerski2023-09-021-2/+2
|
* globalshortcuts: allow empty appidvaxerski2023-09-021-1/+1
|
* xwaylandmgr: round reported sizesvaxerski2023-09-021-2/+2
| | | | Since we round the sizes in the renderer, it's also a good idea to round the sizes reported to the apps. Fixes #3138
* keybinds: set special monitor id before recalcvaxerski2023-09-011-2/+2
| | | | set special workspace's monitor ID before we call recalculateMonitor in toggleSpecialWorkspace. Fixes #1151
* keybinds: suppress up event if down was consumedvaxerski2023-09-011-5/+8
| | | | Fixes #3000
* internal: Unsafe state reworks (#3114)Vaxry2023-09-013-7/+10
|
* wlr-ext-workspace: remove protocol implvaxerski2023-09-012-13/+1
| | | | Various reasons: 1st, memory issues. 2nd, MR got closed (see https://gitlab.freedesktop.org/wlroots/wlr-protocols/-/merge_requests/35) 3rd, not needed anymore (waybar has its own hyprland/workspaces module)
* text-input-v1: Fix preedit styling in chromium (#3131)q234rty2023-09-011-3/+3
|
* keybinds: fixup release conditionsvaxerski2023-08-302-11/+1
| | | | honestly I already forgot why the m_vHeldBack vec existed. Seems useless and annoying. Fixes #3113
* decos: groupbar mouse interaction (#3102)MightyPlaza2023-08-302-9/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * allow groupbar clicking modified: src/Window.cpp modified: src/Window.hpp modified: src/managers/input/InputManager.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp modified: src/render/decorations/CHyprGroupBarDecoration.hpp * remove setting pos inside insertWindowToGroup() modified: src/Window.cpp modified: src/layout/DwindleLayout.cpp modified: src/layout/MasterLayout.cpp modified: src/managers/KeybindManager.cpp * add group window by index and group size functions modified: src/Window.cpp modified: src/Window.hpp modified: src/managers/input/InputManager.cpp * allow dragging into groupbar modified: src/Window.cpp modified: src/layout/DwindleLayout.cpp modified: src/layout/MasterLayout.cpp * allow dragging from groupbar modified: src/managers/KeybindManager.cpp * try groupbar clicking before border resize modified: src/managers/input/InputManager.cpp * block grabbing groupbar on floating (crash) remove later when crashing is fixed modified: src/managers/KeybindManager.cpp * remove redundant { } modified: src/layout/DwindleLayout.cpp modified: src/layout/MasterLayout.cpp * implement getWindowDecorationBox() modified: src/Window.cpp modified: src/Window.hpp modified: src/layout/DwindleLayout.cpp modified: src/layout/MasterLayout.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/input/InputManager.cpp modified: src/render/decorations/CHyprDropShadowDecoration.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp modified: src/render/decorations/IHyprWindowDecoration.cpp modified: src/render/decorations/IHyprWindowDecoration.hpp * fix crash when moveoutofgroup in floating windows also removes dragging from floating windows limitation modified: src/layout/IHyprLayout.cpp modified: src/managers/KeybindManager.cpp * use CRegion in getWindowDecorationBox() modified: src/helpers/Region.cpp modified: src/helpers/Region.hpp modified: src/layout/DwindleLayout.cpp modified: src/layout/MasterLayout.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/input/InputManager.cpp modified: src/render/decorations/IHyprWindowDecoration.cpp modified: src/render/decorations/IHyprWindowDecoration.hpp * add groupbar scrolling modified: src/config/ConfigManager.cpp modified: src/managers/input/InputManager.cpp * change name to getWindowDecorationRegion() modified: src/layout/DwindleLayout.cpp modified: src/layout/MasterLayout.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/input/InputManager.cpp modified: src/render/decorations/IHyprWindowDecoration.cpp modified: src/render/decorations/IHyprWindowDecoration.hpp * make dragging from group less hacky for floating modified: src/managers/KeybindManager.cpp
* input: fix xwayland constraint calcsvaxerski2023-08-301-3/+5
| | | | some minor adjustments, fixes #3028
* input: warp in unconstrainMousevaxerski2023-08-301-1/+7
| | | | XWayland coord translation would fuck up if we did this in destroyConstraint
* internal: allow opening empty special workspacesvaxerski2023-08-251-8/+2
| | | | Fixes point 2 of #2596
* input: improved path handling; null check return value of fopen. (#3061)memchr2023-08-252-8/+6
|
* input: add transparent bindsvaxerski2023-08-252-9/+15
| | | | | adds a new flag for binds to be transparent (non-shadowable) fixes #3058
* input: sanitize newlines in device namesvaxerski2023-08-251-1/+2
| | | | fixes #3066 by replacing newlines with dashes in device names
* gestures: Swipe direction lock (#3052)end-42023-08-231-8/+18
|
* input: unify constraint hint logicvaxerski2023-08-182-25/+24
| | | | Unifies the constraint hint logic. Previously, ignoring the stupid conditions, unscaled hints were mistaken with scaled coordinates.
* xwayland: fix incorrect VECINRECT usagevaxerski2023-08-181-1/+1
| | | | Fixes #3002. VECINRECT uses x2 and y2 and not w / h.
* animations: add slidefade and slidefadevert styles for workspaces (#3008)end-42023-08-172-2/+20
| | | | | | | | | | | | | | | * add slidefade and slidefadevert animations * fix swiping for slidefadevert * rename minPerc to movePerc for slidefade anim styles * change default slidefade percentage to 100% * remove useless comments * findlastof + 1 * debug logging for slidefade/slidefadevert percentage