diff options
| author | dranull <150595692+dranull@users.noreply.github.com> | 2024-01-02 12:37:03 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-02 13:37:03 +0100 |
| commit | 583b05a8c67772e96e534e37e21b608fb5723546 (patch) | |
| tree | e355550eb41ed768d00bb67a0f6f2e157492506f /src/render | |
| parent | 1607e967041fd3311411de0def8cdc0610274f98 (diff) | |
groupbar: Drag single window instead of destroying group (#4327)
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 33ecff6a..61409256 100644 --- a/src/render/decorations/CHyprGroupBarDecoration.cpp +++ b/src/render/decorations/CHyprGroupBarDecoration.cpp @@ -317,6 +317,9 @@ void refreshGroupBarGradients() { } bool CHyprGroupBarDecoration::onBeginWindowDragOnDeco(const Vector2D& pos) { + if (m_pWindow == m_pWindow->m_sGroupData.pNextWindow) + return false; + const float BARRELATIVEX = pos.x - assignedBoxGlobal().x; const int WINDOWINDEX = (BARRELATIVEX) / (m_fBarWidth + BAR_HORIZONTAL_PADDING); |
