diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-03-02 21:39:06 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-02 21:39:06 +0000 |
| commit | be03497b82be332a124dd170e8741623791ef7c4 (patch) | |
| tree | 06758f08e32a6647d43f70184be40fa1a1024074 /src/layout/algorithm/tiled/monocle/MonocleAlgorithm.cpp | |
| parent | ff20cbf89c68a87b12c0cd3453ac13d7c7197da5 (diff) | |
layout/algos: use binds:window_direction_monitor_fallback for moves (#13508)
ref https://github.com/hyprwm/Hyprland/discussions/13473
Diffstat (limited to 'src/layout/algorithm/tiled/monocle/MonocleAlgorithm.cpp')
| -rw-r--r-- | src/layout/algorithm/tiled/monocle/MonocleAlgorithm.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/layout/algorithm/tiled/monocle/MonocleAlgorithm.cpp b/src/layout/algorithm/tiled/monocle/MonocleAlgorithm.cpp index 3551b370..fe92f27c 100644 --- a/src/layout/algorithm/tiled/monocle/MonocleAlgorithm.cpp +++ b/src/layout/algorithm/tiled/monocle/MonocleAlgorithm.cpp @@ -202,6 +202,11 @@ void CMonocleAlgorithm::swapTargets(SP<ITarget> a, SP<ITarget> b) { } void CMonocleAlgorithm::moveTargetInDirection(SP<ITarget> t, Math::eDirection dir, bool silent) { + static auto PMONITORFALLBACK = CConfigValue<Hyprlang::INT>("binds:window_direction_monitor_fallback"); + + if (!*PMONITORFALLBACK) + return; // noop + // try to find a monitor in the specified direction, thats the logical thing if (!t || !t->space() || !t->space()->workspace()) return; |
