Skip to content

Commit

Permalink
something
Browse files Browse the repository at this point in the history
  • Loading branch information
nnyyxxxx committed Feb 24, 2025
1 parent 0b1dd21 commit eb0f275
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/desktop/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1220,8 +1220,7 @@ void CWindow::handleFloatingSizeRestoration() {
}
m_bRestoredFloatingSize = true;
} else {
Debug::log(LOG, "handleFloatingSizeRestoration: window:{:x},title:{} not floating, saving size {},{}", (uintptr_t)this, m_szTitle, m_vRealSize->goal().x, m_vRealSize->goal().y);
m_vLastFloatingSize = m_vRealSize->goal();
Debug::log(LOG, "handleFloatingSizeRestoration: window:{:x},title:{} not floating", (uintptr_t)this, m_szTitle);
m_bRestoredFloatingSize = false;
}
}
Expand Down
6 changes: 5 additions & 1 deletion src/layout/IHyprLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,10 @@ void IHyprLayout::onMouseMove(const Vector2D& mousePos) {
DRAGGINGWINDOW->m_vRealPosition->setValueAndWarp(wb.pos());
DRAGGINGWINDOW->sendWindowSize();
}

if (DRAGGINGWINDOW->m_bIsFloating)
DRAGGINGWINDOW->m_vLastFloatingSize = wb.size();

} else {
resizeActiveWindow(TICKDELTA, m_eGrabbedCorner, DRAGGINGWINDOW);
}
Expand Down Expand Up @@ -721,7 +725,7 @@ void IHyprLayout::changeWindowFloatingMode(PHLWINDOW pWindow) {
if (!TILED) {
const auto PNEWMON = g_pCompositor->getMonitorFromVector(pWindow->m_vRealPosition->value() + pWindow->m_vRealSize->value() / 2.f);
pWindow->m_pMonitor = PNEWMON;
pWindow->moveToWorkspace(PNEWMON->activeSpecialWorkspace ? PNEWMON->activeSpecialWorkspace : PNEWMON->activeWorkspace);
pWindow->moveToWorkspace(PNEWMON->activeWorkspace);
pWindow->updateGroupOutputs();

const auto PWORKSPACE = PNEWMON->activeSpecialWorkspace ? PNEWMON->activeSpecialWorkspace : PNEWMON->activeWorkspace;
Expand Down

0 comments on commit eb0f275

Please sign in to comment.