Fix minor issues in XdgShellClient::updateClientOutputs
Fix minor coding style issues and drop redundant qAsConst (const containers don't detach).
This commit is contained in:
parent
35fe3cb6c5
commit
c43b25bd55
1 changed files with 4 additions and 4 deletions
|
@ -1969,11 +1969,11 @@ void XdgShellClient::popupDone()
|
|||
|
||||
void XdgShellClient::updateClientOutputs()
|
||||
{
|
||||
QVector<OutputInterface*> clientOutputs;
|
||||
QVector<OutputInterface *> clientOutputs;
|
||||
const auto outputs = waylandServer()->display()->outputs();
|
||||
for (OutputInterface* output: qAsConst(outputs)) {
|
||||
const QRect outputGeom(output->globalPosition(), output->pixelSize() / output->scale());
|
||||
if (frameGeometry().intersects(outputGeom)) {
|
||||
for (OutputInterface *output : outputs) {
|
||||
const QRect outputGeometry(output->globalPosition(), output->pixelSize() / output->scale());
|
||||
if (frameGeometry().intersects(outputGeometry)) {
|
||||
clientOutputs << output;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue