summaryrefslogtreecommitdiff
path: root/src/layout
Commit message (Collapse)AuthorAgeFilesLines
...
* master: fix drop_at_cursor on workspace 2 (#3512)Jeremy Huang2023-10-061-0/+2
|
* master: add option to drag and drop windows at cursor position (#3465)Jeremy Huang2023-10-031-0/+29
| | | | | * add option to drag and drop a window at cursor position * use getWindowIdealBoundingBoxIgnoreReserved
* layout: don't discard fullscreen on new tilingvaxerski2023-09-285-23/+12
|
* layout: check for specialworkspace in floating togglevaxerski2023-09-241-1/+1
|
* windowrules: add rule `group` to map windows grouped (#3279)memchr2023-09-222-8/+24
| | | | | * windows: add rule group to map windows grouped * group rule: use `invade` to force open a window in a locked group
* keybinds: implement pushactivetobottom dispacher (#3217)alaricljs2023-09-213-5/+5
| | | Co-authored-by: Leeman <lstrout@enlj.com>
* logging: implement std::formatter for some types (#3380)memchr2023-09-205-11/+43
|
* logging/format: use std::format_string to catch formatting string errors at ↵memchr2023-09-201-1/+1
| | | | | | | compile time (#3377) * fix(log): use constexpr format string * deprecate getFormat
* master: partially revert 0e64dd2e and fix the animation (#3327)Jeremy Huang2023-09-152-1/+7
|
* master: Add mfact dispatcher (#3298)Jeremy Huang2023-09-151-0/+14
| | | | | | | | | * add mfact dispatcher * limit mfact to between 0.05 and 0.95 * add try catch block for stof * change log to err
* dwindle: fix moving windows on specialvaxerski2023-09-141-2/+4
|
* refactor: flatten nesting `if`s in layout window creation method (#3294)memchr2023-09-142-61/+60
|
* master: respect the resizing animation option in master layout (#3300)Jeremy Huang2023-09-142-7/+2
|
* dwindle: fix: don't merge groups when moving window (#3302)memchr2023-09-141-2/+2
|
* master: Fix the wrong resize speed in master layout center orientation (#3289)Jeremy Huang2023-09-131-40/+36
| | | | | | | * rebase * change isStackVertical variable to make it more readable * fix some code getting unnecessarily repeating in a loop
* layout: add direction parameter to onWindowCreated and friends (#3269)memchr2023-09-136-52/+51
| | | | | | | | | | | | | | | | | | * 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-122-2/+24
| | | | | | | | | | | | * 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
* refactor: utilize 'middle()' method for window/montior center (#3253)memchr2023-09-112-4/+3
|
* master: Add smart resizing option for master layout (#3210)Jeremy Huang2023-09-101-13/+165
| | | | | | | | | | | | | * 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
* fix(layout): remove `focusWindow` calls from `onWindowCreatedTiling` (#3233)memchr2023-09-102-2/+0
|
* internal: Remove all `.c_str()` calls when using `std::vformat` (#3198)Philip Damianik2023-09-061-1/+1
| | | Signed-off-by: pdamianik <39028343+pdamianik@users.noreply.github.com>
* internal: Formatter rework (#3186)Vaxry2023-09-063-7/+7
|
* master: Add orientationcycle command on MasterLayout (#3128)shadowmax312023-09-042-26/+59
|
* dwindle: add proper movement for window move bindsvaxerski2023-09-045-15/+73
| | | | ditches the "movewindow = swapwindow" mechanism. Fixes #2804
* refactor: replace manual iteration of CWindow with existing methods (#3147)memchr2023-09-041-13/+8
|
* layout: always center floating xdg windowsvaxerski2023-09-031-1/+1
|
* fix: use-after-free of CWindow* in CHyprGroupBarDecoration::draw (#3146)memchr2023-09-021-0/+1
|
* decos: groupbar mouse interaction (#3102)MightyPlaza2023-08-303-59/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* layout: allow changing float status of fullscreen windowsvaxerski2023-08-281-5/+2
|
* layout: allow drag on fullscreen windowsvaxerski2023-08-281-3/+2
|
* layout: use full box for visibility check of floating xdgvaxerski2023-08-251-15/+5
| | | | Fixes #3069, if an xdg dialog pops up and is partially off bounds, just move it to the center.
* master: layout resize makes the wrong size changes (#3064)Jeremy Huang2023-08-241-2/+2
|
* dwindle: use smart on display borders (#2897)MightyPlaza2023-08-211-4/+4
|
* renderer: Border improvements (#2986)MightyPlaza2023-08-173-65/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * simplify getting border size modified: src/Window.cpp modified: src/Window.hpp modified: src/layout/DwindleLayout.cpp modified: src/layout/MasterLayout.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp * fix border damage and input box modified: src/Window.cpp modified: src/managers/AnimationManager.cpp * add border size in resize_on_border box modified: src/managers/input/InputManager.cpp * simplify border (fixes possible typo) modified: src/Window.cpp * use updateSpecialRenderData() modified: Window.cpp modified: Window.hpp modified: events/Windows.cpp modified: layout/DwindleLayout.cpp modified: layout/IHyprLayout.cpp modified: layout/MasterLayout.cpp modified: render/Renderer.cpp * update window workspace rule data on reload modified: src/config/ConfigManager.cpp * use rounding() modified: src/Window.cpp
* layout: Use refreshrate tick on all manual animations (#2988)Dashie2023-08-161-1/+1
|
* xwayland: fix use of xwayland coords in native spacesvaxerski2023-08-151-6/+11
|
* master: fix `always_center_master` (#2961)kbtz2023-08-151-142/+133
| | | | | | | | | * master: fix always_center_master * master: allow resizing single centered window --------- Co-authored-by: kbtz <github@kbtz.dev>
* remove shadow no_gaps_when_only master (#2958)MightyPlaza2023-08-131-0/+2
| | | | | | | | | | | | | | * remove shadow no_gaps_when_only modified: src/Window.hpp modified: src/config/ConfigManager.cpp modified: src/config/ConfigManager.hpp modified: src/layout/DwindleLayout.cpp modified: src/render/decorations/CHyprDropShadowDecoration.cpp * add master modified: src/layout/MasterLayout.cpp * fix wrong modified: src/layout/MasterLayout.cpp
* remove shadow no_gaps_when_only (#2956)MightyPlaza2023-08-121-0/+2
| | | | | | | modified: src/Window.hpp modified: src/config/ConfigManager.cpp modified: src/config/ConfigManager.hpp modified: src/layout/DwindleLayout.cpp modified: src/render/decorations/CHyprDropShadowDecoration.cpp
* dwindle: disallow togglesplit on fullscreenvaxerski2023-08-101-0/+3
|
* keybinds: Keep aspect ratio (#2907)MightyPlaza2023-08-081-16/+42
|
* internal: cleanup headers in helpers/vaxerski2023-08-071-1/+1
|
* fix workspace change focus (#2891)MightyPlaza2023-08-051-0/+2
|
* layout: no_border_when_only-improvements (#2791)MightyPlaza2023-07-242-21/+31
|
* add config option to enable/disable new intuitive resizing (#2774)end-42023-07-231-50/+109
| | | | | dwindle:smart_resizing = 1 by default == 1 then use new resizing else use old resizing
* render: Border fixes (#2781)MightyPlaza2023-07-232-1/+6
| | | | | | | * Window.cpp * layout * CHyprGroupBarDecoration.cpp
* layout: use warp() instead of setValue()vaxerski2023-07-201-2/+2
|
* Add bringWindowToTop function to IHyprLayout (#2747)outfoxxed2023-07-192-0/+16
| | | | | | | * Add bringWindowToTop function to IHyprLayout * Rename `bringWindowToTop` to `requestFocusForWindow` * Fix doc
* windowrules: add border size rulevaxerski2023-07-182-1/+5
|
* move/resize window (#2706)MightyPlaza2023-07-131-2/+3
|