Skip to content

Commit

Permalink
fix: allow for stacked monitors in dirtomon
Browse files Browse the repository at this point in the history
Stacking monitors vertically prevented dirtomon from
finding any adjacent monitor.
  • Loading branch information
Frewacom committed Dec 26, 2022
1 parent 95d6f0a commit cf05635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dwl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,7 @@ dirtomon(enum wlr_direction dir)
return next->data;
if (wlr_output_layout_get(output_layout, selmon->wlr_output)
&& (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;
Expand Down

0 comments on commit cf05635

Please sign in to comment.