mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-12-23 15:42:12 +03:00
parent
b1120ec433
commit
6cf193e166
@ -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 New Issue
Block a user