Skip to content

Commit

Permalink
fix: can't set output's postion
Browse files Browse the repository at this point in the history
Log: OutputViewport are anchor to it's parent, should setX/Y for it's
parent
  • Loading branch information
wineee committed Feb 14, 2025
1 parent 3fc2607 commit ddc9f5f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/seat/helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,11 @@ void Helper::onOutputTestOrApply(qw_output_configuration_v1 *config, bool onlyTe

WOutputViewport *viewport = getOutput(output)->screenViewport();
if (viewport) {
viewport->setX(state.x);
viewport->setY(state.y);
auto outputItem = qobject_cast<WOutputItem*>(viewport->parentItem());
if (outputItem) {
outputItem->setX(state.x);
outputItem->setY(state.y);
}
}
}
}
Expand Down

0 comments on commit ddc9f5f

Please sign in to comment.