diff options
| author | MightyPlaza <123664421+MightyPlaza@users.noreply.github.com> | 2023-11-19 12:29:01 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-19 12:29:01 +0000 |
| commit | add23a9ba26c6363c7180ed0b23394d9f1328be2 (patch) | |
| tree | ca3a75f67ee4a57da76d8262978ef4dd074737ae /src/render | |
| parent | 3d89654254a3cc23a57e1bdcd39ad9f743bf98e2 (diff) | |
group: fix dragging into floating groups (#3719)
* allow dragging into floating groups
modified: src/Compositor.cpp
modified: src/Compositor.hpp
modified: src/layout/IHyprLayout.cpp
modified: src/render/decorations/CHyprGroupBarDecoration.cpp
* floating-only
modified: src/layout/IHyprLayout.cpp
Diffstat (limited to 'src/render')
| -rw-r--r-- | src/render/decorations/CHyprGroupBarDecoration.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/decorations/CHyprGroupBarDecoration.cpp b/src/render/decorations/CHyprGroupBarDecoration.cpp index 4e6776b4..acf74cef 100644 --- a/src/render/decorations/CHyprGroupBarDecoration.cpp +++ b/src/render/decorations/CHyprGroupBarDecoration.cpp @@ -344,6 +344,9 @@ bool CHyprGroupBarDecoration::onEndWindowDragOnDeco(CWindow* pDraggedWindow, con pDraggedWindow->updateWindowDecos(); g_pLayoutManager->getCurrentLayout()->recalculateWindow(pDraggedWindow); + if (!pDraggedWindow->getDecorationByType(DECORATION_GROUPBAR)) + pDraggedWindow->addWindowDeco(std::make_unique<CHyprGroupBarDecoration>(pDraggedWindow)); + return false; } |
