mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-07 23:51:55 -07:00
fix recalc dwindle
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user