diff options
| author | memchr <118117622+memchr@users.noreply.github.com> | 2023-09-13 10:13:29 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-13 11:13:29 +0100 |
| commit | 6b1ac659e005042a6970ffc489aef71e0875af15 (patch) | |
| tree | ce0e73429f76dcd884d27cafdadfda51b925b57f /src/layout/IHyprLayout.cpp | |
| parent | b0d5e4008b96f2cdbb6f6c2449c790d921d1546b (diff) | |
layout: add direction parameter to onWindowCreated and friends (#3269)
* 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
Diffstat (limited to 'src/layout/IHyprLayout.cpp')
| -rw-r--r-- | src/layout/IHyprLayout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index 5466282f..2a135c75 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -2,7 +2,7 @@ #include "../defines.hpp" #include "../Compositor.hpp" -void IHyprLayout::onWindowCreated(CWindow* pWindow) { +void IHyprLayout::onWindowCreated(CWindow* pWindow, eDirection direction) { if (pWindow->m_bIsFloating) { onWindowCreatedFloating(pWindow); } else { @@ -18,7 +18,7 @@ void IHyprLayout::onWindowCreated(CWindow* pWindow) { pWindow->m_vPseudoSize = pWindow->m_vLastFloatingSize; - onWindowCreatedTiling(pWindow); + onWindowCreatedTiling(pWindow, direction); } } |
