Commit c43b25bd authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Fix minor issues in XdgShellClient::updateClientOutputs

Fix minor coding style issues and drop redundant qAsConst (const
containers don't detach).
parent 35fe3cb6
...@@ -1969,11 +1969,11 @@ void XdgShellClient::popupDone() ...@@ -1969,11 +1969,11 @@ void XdgShellClient::popupDone()
void XdgShellClient::updateClientOutputs() void XdgShellClient::updateClientOutputs()
{ {
QVector<OutputInterface*> clientOutputs; QVector<OutputInterface *> clientOutputs;
const auto outputs = waylandServer()->display()->outputs(); const auto outputs = waylandServer()->display()->outputs();
for (OutputInterface* output: qAsConst(outputs)) { for (OutputInterface *output : outputs) {
const QRect outputGeom(output->globalPosition(), output->pixelSize() / output->scale()); const QRect outputGeometry(output->globalPosition(), output->pixelSize() / output->scale());
if (frameGeometry().intersects(outputGeom)) { if (frameGeometry().intersects(outputGeometry)) {
clientOutputs << output; clientOutputs << output;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment