summaryrefslogtreecommitdiff
path: root/src/layout/DwindleLayout.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* keybinds: implement pushactivetobottom dispacher (#3217)alaricljs2023-09-211-1/+1
| | | Co-authored-by: Leeman <lstrout@enlj.com>
* logging: implement std::formatter for some types (#3380)memchr2023-09-201-3/+4
|
* dwindle: fix moving windows on specialvaxerski2023-09-141-2/+4
|
* refactor: flatten nesting `if`s in layout window creation method (#3294)memchr2023-09-141-25/+24
|
* dwindle: fix: don't merge groups when moving window (#3302)memchr2023-09-141-2/+2
|
* layout: add direction parameter to onWindowCreated and friends (#3269)memchr2023-09-131-9/+12
| | | | | | | | | | | | | | | | | | * 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(layout): remove `focusWindow` calls from `onWindowCreatedTiling` (#3233)memchr2023-09-101-1/+0
|
* internal: Formatter rework (#3186)Vaxry2023-09-061-3/+3
|
* dwindle: add proper movement for window move bindsvaxerski2023-09-041-5/+40
| | | | ditches the "movewindow = swapwindow" mechanism. Fixes #2804
* decos: groupbar mouse interaction (#3102)MightyPlaza2023-08-301-16/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* dwindle: use smart on display borders (#2897)MightyPlaza2023-08-211-4/+4
|
* renderer: Border improvements (#2986)MightyPlaza2023-08-171-32/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* 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
|
* layout: no_border_when_only-improvements (#2791)MightyPlaza2023-07-241-11/+16
|
* 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-231-0/+3
| | | | | | | * Window.cpp * layout * CHyprGroupBarDecoration.cpp
* windowrules: add border size rulevaxerski2023-07-181-0/+2
|
* Dwindle: Make resize more intuitive (#2681)Daniel Adolfsson2023-07-131-46/+48
| | | | | | | | | * improved resize * clang-format * rewrite * almost legacy behavior when using CORNER_NONE
* Add support for smart splitting (#2676)Daniel Adolfsson2023-07-111-2/+27
| | | | | | | * Add support for smart splitting * clang-format * smart_split default to 0, and make smart_split behave like preserve_split
* groupbar fixes (#2630)MightyPlaza2023-07-031-9/+24
| | | | | | | | | | | | | | Fixes multiple groupbar decoration issues: - togglegroup removes fullscreen to avoid to avoid weird state - fixes issue where a group had multiple windows with head = true - fixes issue where merging 2 groups would cause a window to have 2 groupbar decorations - fixes issue where merging a group with more than 1 window into another group would make windows have no groupbar decoration - fixes issue where ungrouping windows could just move them into another group on the same workspace --------- Co-authored-by: vaxerski <43317083+vaxerski@users.noreply.github.com>
* feat: add lockactivegroup dispatcher (#2478)memchr2023-06-091-1/+3
| | | | | | | | | | | | | | | | | * feat: add lockactivegroup dispatcher The `lockactivewindow` dispatcher takes `lock`, `toggle` or `unlock` as arguments. When a group is locked, no window or group can be added to it, nor can it be added to another group, but the `moveintogroup` and `moveoutofgroup` dispatches are not affected. Implementation details: the lock is implement via `SGroupData.locked` flag (defaults to false). The flag is only relevant to the group head, and upon the group head's succession, the flag will be passed down to the new head. Meanwhile, the old head's flag will be set to false. The flag is set to false when a group is dismissed. New condition checks have been added to the dwindle and master layout to check if target group is unlocked (and if the source is also a group and unlocked) before adding windows to the target group. * refactor: `lockactivegroup dispatcher code ordering
* layouts: make aware of borderSize propvaxerski2023-06-041-3/+4
|
* layouts: ignore direction forces on non-mapvaxerski2023-05-241-1/+1
|
* decos: recalc on addvaxerski2023-05-231-0/+2
|
* Add split preselection (#2240)Dashie2023-05-061-9/+75
|
* only ignore no_gaps_when_only when the workspace rule specifies a border (#2217)jacekpoz2023-05-031-1/+1
| | | Co-authored-by: jacekpoz <jacekpoz@cock.li>
* Added some workspace-specific rules (#1986)levnikmyskin2023-05-011-16/+24
| | | | | | | | | | | | | | | | | | | | | | * added some workspace-specific rules * added some worskpace-specific rules, with windowrule like syntax * monitor is not mandatory anymore * pointers to config are now static * fixed optional WorkspaceRule fields * Windows can now specify border size * removed CHyprOpenGLImpl::renderBorder borderSize default value * stuff --------- Co-authored-by: Alessio Molinari <alessiomolinari@gmail.com> Co-authored-by: vaxerski <43317083+vaxerski@users.noreply.github.com>
* Window resizing for pseudotiled windows (#2140)outfoxxed2023-04-251-0/+44
| | | | | * Window resizing for pseudotiled windows * Use `m_vRealSize` to determine scaled window size
* layouts: add missing static modifiers to config varsvaxerski2023-04-251-8/+8
|
* Format: use %lx for all addressesvaxerski2023-04-171-3/+3
|
* fix: a fullscreen bug. (#1821) (#1831)lisuke2023-03-201-9/+6
|
* Dwindle: Added default_split_ratiovaxerski2023-03-071-1/+3
|
* make window reserved area less stupidvaxerski2023-02-281-0/+4
|
* added a lockgroups dispatchervaxerski2023-02-211-1/+1
|
* Group/Tab Rework (#1580)Vaxry2023-02-191-449/+20
|
* Added an Event Hook System (#1578)Vaxry2023-02-191-0/+1
| | | | | * added an eventHookSystem * Add all socket2 events to hooks
* reset layout-set render vars on floatingvaxerski2023-01-311-0/+4
|
* support gradients in dwindle group colorsvaxerski2022-12-311-8/+8
|
* Add 'exact' option for 'splitratio' (#1245)Julian Schuler2022-12-171-2/+3
| | | | | * Simplify getPlusMinusKeywordResult() * Add an 'exact' option for 'splitratio'
* remember size and pos on fullscreen 1vaxerski2022-12-171-6/+8
|
* Added clang format (#1239)Vaxry2022-12-161-191/+196
| | | * clang-format stuff and format files
* log more in group creationvaxerski2022-12-161-6/+12
|
* fix drag resizing on special ws-esvaxerski2022-12-091-1/+1
|
* add failsafe for dwindle windowsvaxerski2022-12-071-0/+10
|
* Added handling more special workspacesvaxerski2022-11-271-8/+8
|
* fix decorations missing after no_gaps_when_only toggle floatingvaxerski2022-11-261-0/+4
|
* damage windows after switchvaxerski2022-11-251-0/+3
|
* damage monitor on group switchvaxerski2022-11-221-0/+2
|
* respect no_gaps_when_only in fullscreen 1vaxerski2022-11-191-1/+1
|