From 22665c8952c76da9a9cc69e3374351c9630af719 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sun, 15 Jun 2025 13:00:34 +0800 Subject: [PATCH] opt: support dirtomon in up and down dir --- src/maomao.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/maomao.c b/src/maomao.c index 6b2a98d..8bcb1b3 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -3742,7 +3742,9 @@ Monitor *dirtomon(enum wlr_direction dir) { selmon->m.x, selmon->m.y))) return next->data; if ((next = wlr_output_layout_farthest_output( - output_layout, dir ^ (WLR_DIRECTION_LEFT | WLR_DIRECTION_RIGHT), + output_layout, + dir ^ (WLR_DIRECTION_LEFT | WLR_DIRECTION_RIGHT | + WLR_DIRECTION_UP | WLR_DIRECTION_DOWN), selmon->wlr_output, selmon->m.x, selmon->m.y))) return next->data; return selmon;