Skip to content

Commit

Permalink
snap: don't snap to any windows if workspace has a fullscreen window
Browse files Browse the repository at this point in the history
  • Loading branch information
myQwil committed Dec 27, 2024
1 parent 534adad commit da4c34d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layout/IHyprLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ static void performSnap(Vector2D& sourcePos, Vector2D& sourceSize, PHLWINDOW DRA
SRange sourceX = {sourcePos.x, sourcePos.x + sourceSize.x};
SRange sourceY = {sourcePos.y, sourcePos.y + sourceSize.y};

if (*SNAPWINDOWGAP) {
if (*SNAPWINDOWGAP && !DRAGGINGWINDOW->m_pWorkspace->m_bHasFullscreenWindow) {
const double GAPSIZE = *SNAPWINDOWGAP;
const auto WSID = DRAGGINGWINDOW->workspaceID();

Expand Down

0 comments on commit da4c34d

Please sign in to comment.