support monitors above and below in focusmon and tagmon

Fixes https://codeberg.org/dwl/dwl/issues/1105
This commit is contained in:
Guido Cella
2026-09-13 21:14:10 +02:00
parent b1c101515a
commit 5fd19feaff
+2 -1
View File
@@ -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;