mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 21:25:58 +01:00
master: Fix animate resize (#4942)
* fix master animate resize * fix some other pointers
This commit is contained in:
parent
c701767038
commit
28272d2d74
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue