mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2025-12-27 02:10:04 +01:00
hyprscrolling: fix viewport should follow movewindowto (#359)
This commit is contained in:
parent
c04dee3d0c
commit
032b2fd879
1 changed files with 5 additions and 1 deletions
|
|
@ -1030,6 +1030,7 @@ void CScrollingLayout::moveWindowTo(PHLWINDOW w, const std::string& dir, bool si
|
|||
|
||||
DATA->column->remove(w);
|
||||
COL->add(DATA);
|
||||
WS->centerCol(COL);
|
||||
} else if (dir == "r") {
|
||||
const auto COL = WS->next(DATA->column.lock());
|
||||
|
||||
|
|
@ -1039,8 +1040,11 @@ void CScrollingLayout::moveWindowTo(PHLWINDOW w, const std::string& dir, bool si
|
|||
// make a new one
|
||||
const auto NEWCOL = WS->add();
|
||||
NEWCOL->add(DATA);
|
||||
} else
|
||||
WS->centerCol(NEWCOL);
|
||||
} else {
|
||||
COL->add(DATA);
|
||||
WS->centerCol(COL);
|
||||
}
|
||||
|
||||
} else if (dir == "t" || dir == "u")
|
||||
DATA->column->up(DATA);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue