hyprscrolling: fix layoutmsg move -col (#558)

This commit is contained in:
mwahstache 2025-12-01 10:47:05 -06:00 committed by GitHub
parent 84659a2502
commit be3fac629c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -865,7 +865,7 @@ std::any CScrollingLayout::layoutMessage(SLayoutMessageHeader header, std::strin
} else if (ARGS[1] == "-col") {
const auto WDATA = dataFor(Desktop::focusState()->window());
if (!WDATA) {
if (DATA->leftOffset <= DATA->maxWidth() && DATA->columns.size() > 0) {
if (DATA->columns.size() > 0) {
DATA->centerCol(DATA->columns.back());
DATA->recalculate();
focusWindowUpdate((DATA->columns.back()->windowDatas.back())->window.lock());