From be2af33ef6393b3c5e4b5601c680214862810a87 Mon Sep 17 00:00:00 2001 From: chenyc Date: Sun, 6 Apr 2025 01:38:44 +0800 Subject: [PATCH] fix: fix dirtomon dir --- maomao.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maomao.c b/maomao.c index b71589a9..6b7846ce 100644 --- a/maomao.c +++ b/maomao.c @@ -3034,7 +3034,7 @@ dirtomon(enum wlr_direction dir) { if (!wlr_output_layout_get(output_layout, selmon->wlr_output)) return selmon; if ((next = wlr_output_layout_adjacent_output( - output_layout, dir, selmon->wlr_output, selmon->m.x, selmon->m.y))) + output_layout, 1 << dir, selmon->wlr_output, 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),