Dwindle: Make resize more intuitive (#2681)

* improved resize

* clang-format

* rewrite

* almost legacy behavior when using CORNER_NONE
This commit is contained in:
Daniel Adolfsson
2023-07-13 16:52:11 +02:00
committed by GitHub
parent 70dae78c1b
commit d3a644d81c
7 changed files with 60 additions and 59 deletions

View File

@@ -1638,7 +1638,7 @@ void CKeybindManager::resizeWindow(std::string args) {
if (SIZ.x < 1 || SIZ.y < 1)
return;
g_pLayoutManager->getCurrentLayout()->resizeActiveWindow(SIZ - PWINDOW->m_vRealSize.goalv(), PWINDOW);
g_pLayoutManager->getCurrentLayout()->resizeActiveWindow(SIZ - PWINDOW->m_vRealSize.goalv(), CORNER_NONE, PWINDOW);
if (PWINDOW->m_vRealSize.goalv().x > 1 && PWINDOW->m_vRealSize.goalv().y > 1)
PWINDOW->setHidden(false);