diff --git a/.gitignore b/.gitignore index dfee530e..b8423e8f 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,5 @@ gmon.out PKGBUILD src/version.h + +.direnv diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 4bd652be..a74e880d 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -2273,8 +2273,12 @@ void CKeybindManager::moveWindowOrGroup(std::string args) { g_pCompositor->warpCursorTo(PWINDOW->middle()); } else moveWindowOutOfGroup(PWINDOW, args); - } else if ((*PIGNOREGROUPLOCK || !ISWINDOWGROUPLOCKED) && ISWINDOWGROUP) // no target window + } else if ((*PIGNOREGROUPLOCK || !ISWINDOWGROUPLOCKED) && ISWINDOWGROUP) { // no target window moveWindowOutOfGroup(PWINDOW, args); + } else if (!PWINDOWINDIR && !ISWINDOWGROUP) { // no target in dir and not in group + g_pLayoutManager->getCurrentLayout()->moveWindowTo(PWINDOW, args); + g_pCompositor->warpCursorTo(PWINDOW->middle()); + } g_pCompositor->updateWindowAnimatedDecorationValues(PWINDOW); }