mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-02 09:01:43 -05:00
opt: support dirtomon in up and down dir
This commit is contained in:
parent
3ed80345dc
commit
22665c8952
1 changed files with 3 additions and 1 deletions
|
|
@ -3742,7 +3742,9 @@ Monitor *dirtomon(enum wlr_direction dir) {
|
||||||
selmon->m.x, selmon->m.y)))
|
selmon->m.x, selmon->m.y)))
|
||||||
return next->data;
|
return next->data;
|
||||||
if ((next = wlr_output_layout_farthest_output(
|
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)))
|
selmon->wlr_output, selmon->m.x, selmon->m.y)))
|
||||||
return next->data;
|
return next->data;
|
||||||
return selmon;
|
return selmon;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue