refactor a bunch of layout code

This commit is contained in:
vaxerski
2022-06-30 12:09:05 +02:00
parent ae3ff6736e
commit b0cd90a43c
6 changed files with 268 additions and 239 deletions

View File

@@ -221,6 +221,9 @@ void CKeybindManager::toggleActiveFloating(std::string args) {
const auto ACTIVEWINDOW = g_pCompositor->m_pLastWindow;
if (g_pCompositor->windowValidMapped(ACTIVEWINDOW)) {
// remove drag status
g_pInputManager->currentlyDraggedWindow = nullptr;
ACTIVEWINDOW->m_bIsFloating = !ACTIVEWINDOW->m_bIsFloating;
if (ACTIVEWINDOW->m_iWorkspaceID == SPECIAL_WORKSPACE_ID) {