summaryrefslogtreecommitdiff
path: root/src/layout
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Dwindle: Make resize more intuitive (#2681)Daniel Adolfsson2023-07-136-58/+59
| | | | | | | | | * 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
* layout: improve time restraints in window dragvaxerski2023-07-041-1/+2
|
* groupbar fixes (#2630)MightyPlaza2023-07-032-17/+50
| | | | | | | | | | | | | | 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>
* layout: minor style fixesvaxerski2023-07-011-5/+3
|
* layout: set pseudo to float size in new windowvaxerski2023-06-301-0/+2
|
* xwayland: fix minor force_zero_scaling bugsvaxerski2023-06-221-3/+10
|
* feat: add lockactivegroup dispatcher (#2478)memchr2023-06-093-2/+8
| | | | | | | | | | | | | | | | | * 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-042-7/+9
|
* layout: don't reset to floating size on drag tiledvaxerski2023-05-292-0/+5
|
* master: guard monitor in recalcvaxerski2023-05-261-1/+5
|
* layouts: ignore direction forces on non-mapvaxerski2023-05-242-2/+2
|
* decos: recalc on addvaxerski2023-05-231-0/+2
|
* Add split preselection (#2240)Dashie2023-05-062-10/+86
|
* only ignore no_gaps_when_only when the workspace rule specifies a border (#2217)jacekpoz2023-05-032-2/+2
| | | Co-authored-by: jacekpoz <jacekpoz@cock.li>
* Added some workspace-specific rules (#1986)levnikmyskin2023-05-012-32/+48
| | | | | | | | | | | | | | | | | | | | | | * 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-252-6/+58
| | | | | * Window resizing for pseudotiled windows * Use `m_vRealSize` to determine scaled window size
* IHyprLayout: add missing static modifiers to config varsvaxerski2023-04-251-6/+6
|
* layouts: add missing static modifiers to config varsvaxerski2023-04-252-16/+16
|
* Format: use %lx for all addressesvaxerski2023-04-173-8/+8
|
* Add ability to split master when only 1 additional window (#2025)Person18732023-04-131-25/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix: enable master split less than 2 windows added a config flag "master:allow_small_split" added config to minimum windows check. TODO: check that no bug added (remove all masters?) * IMPL:FIX: multiple master windows full width Implemented the ability to have multiple master windows filling the full monitor width in master mode. this is controlled by the config option master:allow_small_split (true/false) this defaults to false as it was the original behaviour before this patch * BUGFIX: corrected issue with blanks re: addmaster FIX 1: Treat ORIENTATION_CENTER the same as ORIENTATION_LEFT unless there are enough STACK_WINDOWS to fill both wings. FIX 2: enforced last window always set as master in MasterLayout::CHyperMasterLayout::calculateWorkspace(); FIX 3: fix 2, also fixed focus issues previously noted. * Changes requested by vaxerski changed how we access config variables (by reference not value) fixed a regression previously missed prior to requested changes. I had somehow broken the very functionality i meant to add. * added static keyword to config variables * removed superfluous static tags I made a mistake with making too many variables static. this made them only evaluate once per runtime breaking things majorly. My appologies. I haven't touched C++ in nearly 20 years. * remove annoying comment --------- Co-authored-by: vaxerski <43317083+vaxerski@users.noreply.github.com>
* internal: make togglefloat better visible on small size deltasvaxerski2023-04-061-0/+5
|