mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2026-05-08 11:48:01 +02:00
parent
eb42a53d17
commit
7769e10250
1 changed files with 1 additions and 1 deletions
|
|
@ -504,7 +504,7 @@ void CScrollingLayout::onWindowRemovedTiling(PHLWINDOW window) {
|
|||
if (!DATA->column) {
|
||||
// column got removed, let's ensure we don't leave any cringe extra space
|
||||
const auto USABLE = usableAreaFor(window->m_monitor.lock());
|
||||
WS->leftOffset = std::clamp((double)WS->leftOffset, 0.0, WS->maxWidth() - USABLE.w);
|
||||
WS->leftOffset = std::clamp((double)WS->leftOffset, 0.0, std::max(WS->maxWidth() - USABLE.w, 1.0));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue