Skip to content

Commit

Permalink
keybinds: fix movewindoworgroup onto empy workspace on next monitor (h…
Browse files Browse the repository at this point in the history
…yprwm#4486)

* fix: movewindoworgroup when no window or group is in desired direction, e.g. move window onto empty workspace on next monitor

* fix: movewindoworgroup when no window or group is in desired direction, e.g. move window onto empty workspace on next monitor

* reset flake.nix

* add: changes mentioned in review of hyprwm#4486
  • Loading branch information
muellerbernd authored Feb 26, 2024
1 parent 81fe2ae commit 1742605
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ gmon.out
PKGBUILD

src/version.h

.direnv
6 changes: 5 additions & 1 deletion src/managers/KeybindManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 1742605

Please sign in to comment.