mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-15 07:46:01 +01:00
parent
b1120ec433
commit
6cf193e166
1 changed files with 1 additions and 2 deletions
|
@ -429,11 +429,10 @@ static void performSnap(Vector2D& sourcePos, Vector2D& sourceSize, PHLWINDOW DRA
|
|||
CBox sourceBox = CBox{sourcePos, sourceSize}.expand(DRAGGINGBORDERSIZE);
|
||||
|
||||
if (*SNAPWINDOWGAP) {
|
||||
const auto PID = DRAGGINGWINDOW->getPID();
|
||||
const auto WSID = DRAGGINGWINDOW->workspaceID();
|
||||
|
||||
for (auto& other : g_pCompositor->m_vWindows) {
|
||||
if (other->workspaceID() != WSID || other->getPID() == PID || !other->m_bIsMapped || other->m_bFadingOut || other->isX11OverrideRedirect())
|
||||
if (other == DRAGGINGWINDOW || other->workspaceID() != WSID || !other->m_bIsMapped || other->m_bFadingOut || other->isX11OverrideRedirect())
|
||||
continue;
|
||||
|
||||
const int BORDERSIZE = other->getRealBorderSize();
|
||||
|
|
Loading…
Reference in a new issue