summaryrefslogtreecommitdiff
path: root/src/layout
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* fix: a fullscreen bug. (#1821) (#1831)lisuke2023-03-202-22/+21
|
* internal: wrap wlr surfaces (#1822)Vaxry2023-03-201-1/+1
|
* groups: fix moving between displaysvaxerski2023-03-181-0/+2
|
* master: better cyclevaxerski2023-03-131-58/+11
|
* Dwindle: Added default_split_ratiovaxerski2023-03-071-1/+3
|
* fix mfact not applying to addmaster (#1715)hillyu2023-03-061-1/+2
| | | Co-authored-by: Hill <hillyu@live.com>
* add mfact setting for master layout (#1666)hillyu2023-03-051-2/+3
| | | | | | | * add mfact setting for master layout --------- Co-authored-by: Hill <hillyu@live.com>
* crashReporter: remove inconsistent log from crash reportsvaxerski2023-03-041-6/+12
|
* Convert reverse iterators to rangesvaxerski2023-03-011-13/+14
|
* make window reserved area less stupidvaxerski2023-02-282-23/+30
|
* Add option to disable/enable mouse window dragging animations (#1658)Dashie2023-02-281-2/+3
|
* Added center orientation to master layout (#1642)Marcus Kellerman2023-02-262-14/+97
| | | | | | | * Added center orientation to master layout to improve experience on ultra widescreen monitors. * Added support for orientationcenter layout message for master layout * Added ability to optionally always center master window when in centered master mode.
* fix cursor image on drag not resizevaxerski2023-02-261-0/+3
|
* use corner cursors on resize (#1638)Mihai Fufezan2023-02-261-6/+10
|
* added a lockgroups dispatchervaxerski2023-02-212-3/+3
|
* unset hidden at grouped removevaxerski2023-02-191-0/+2
|
* Group/Tab Rework (#1580)Vaxry2023-02-196-461/+82
|
* Added an Event Hook System (#1578)Vaxry2023-02-193-1/+4
| | | | | * added an eventHookSystem * Add all socket2 events to hooks
* Resize on border (#1347)Ching Pei Yang2023-02-181-3/+8
|
* properly clamp size in dragging floating cornersvaxerski2023-02-122-25/+29
|
* Fix some issues with a lost focus of the maximized window after using ↵Philipp Mildenberger2023-02-111-23/+29
| | | | | | | swapwithmaster in fullscreen mode (#1524) * Fix some issues with a lost focus of the maximized window after using swapwithmaster in fullscreen mode * Keep current fullscreen mode when `prepareNewFocus` is executed
* Added support for layoutmsg params and added the param 'newfocus' for ↵Philipp Mildenberger2023-02-101-17/+45
| | | | | 'swapwithmaster' and 'focusmaster' (#1522) * Added support for layoutmsg params and added the param 'newfocus' for 'swapwithmaster' and 'focusmaster', which lets the user decide what the new focused window should be
* minor adjustments to xwayland positioningvaxerski2023-02-031-3/+12
|
* reset layout-set render vars on floatingvaxerski2023-01-313-0/+10
|
* Unbreak build with libc++ (#1457)Jan Beich2023-01-312-3/+3
|
* fix: cursor changing on window move and resize (#1371)eriedaberrie2023-01-271-2/+2
| | | * Just use grab cursor for everything
* reset dragged window on failed beginvaxerski2023-01-201-0/+3
|
* master layout: remember size & pos of floating windows on fullscreen 1 (#1374)Maxim Baz2023-01-131-4/+6
|
* clean draggedwindow in dragendvaxerski2023-01-021-0/+2
|
* support gradients in dwindle group colorsvaxerski2022-12-312-35/+35
|