From 5fd19feaff54209bcb3a12017040a80ada4e32b1 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Sun, 13 Sep 2026 21:14:10 +0200 Subject: [PATCH] support monitors above and below in focusmon and tagmon Fixes https://codeberg.org/dwl/dwl/issues/1105 --- dwl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dwl.c b/dwl.c index 7bffb83..f902ace 100644 --- a/dwl.c +++ b/dwl.c @@ -1474,7 +1474,8 @@ dirtomon(enum wlr_direction dir) 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), + 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;