mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-11-24 05:47:06 +03:00
fix recalc dwindle
This commit is contained in:
parent
1a298257c9
commit
3277321c26
@ -250,7 +250,11 @@ void CHyprDwindleLayout::onWindowRemoved(CWindow* pWindow) {
|
|||||||
|
|
||||||
void CHyprDwindleLayout::recalculateMonitor(const int& monid) {
|
void CHyprDwindleLayout::recalculateMonitor(const int& monid) {
|
||||||
const auto TOPNODE = getMasterNodeOnMonitor(monid);
|
const auto TOPNODE = getMasterNodeOnMonitor(monid);
|
||||||
|
const auto PMONITOR = g_pCompositor->getMonitorFromID(monid);
|
||||||
|
|
||||||
if (TOPNODE)
|
if (TOPNODE && PMONITOR) {
|
||||||
|
TOPNODE->position = PMONITOR->vecPosition + PMONITOR->vecReservedTopLeft;
|
||||||
|
TOPNODE->size = PMONITOR->vecSize - PMONITOR->vecReservedTopLeft - PMONITOR->vecReservedBottomRight;
|
||||||
TOPNODE->recalcSizePosRecursive();
|
TOPNODE->recalcSizePosRecursive();
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user