master: Fix animate resize (#4942)

* fix master animate resize

* fix some other pointers
This commit is contained in:
thejch 2024-03-03 09:03:23 -08:00 committed by GitHub
parent c701767038
commit 28272d2d74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -707,7 +707,7 @@ void CHyprMasterLayout::applyNodeDataToWindow(SMasterNodeData* pNode) {
g_pXWaylandManager->setWindowSize(PWINDOW, wb.size()); g_pXWaylandManager->setWindowSize(PWINDOW, wb.size());
} }
if (m_bForceWarps && !*PANIMATE) { if (m_bForceWarps && !**PANIMATE) {
g_pHyprRenderer->damageWindow(PWINDOW); g_pHyprRenderer->damageWindow(PWINDOW);
PWINDOW->m_vRealPosition.warp(); PWINDOW->m_vRealPosition.warp();
@ -774,7 +774,7 @@ void CHyprMasterLayout::resizeActiveWindow(const Vector2D& pixResize, eRectCorne
if (WINDOWS > 2) { if (WINDOWS > 2) {
if (!NONE || !PNODE->isMaster) if (!NONE || !PNODE->isMaster)
delta *= 2; delta *= 2;
if ((!PNODE->isMaster && DISPLAYLEFT) || (PNODE->isMaster && LEFT && *PSMARTRESIZING)) if ((!PNODE->isMaster && DISPLAYLEFT) || (PNODE->isMaster && LEFT && **PSMARTRESIZING))
delta = -delta; delta = -delta;
} }
break; break;